First pass with API

This commit is contained in:
2018-11-19 16:03:33 +00:00
committed by cdramey
parent 206eb2f149
commit 7ebbfc8da9
3 changed files with 89 additions and 1 deletions

View File

@ -35,6 +35,9 @@ func (ctx *RootHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
case "/favicon.ico":
ctx.favi.ServeHTTP(w, r)
case "/api/url":
ctx.ServeAPI(w, r)
default:
fmt.Printf("Path: %s\n", fname)
}