diff options
Diffstat (limited to 'web/web.go')
-rw-r--r-- | web/web.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web/web.go b/web/web.go index ff5040a4b..8e96edd69 100644 --- a/web/web.go +++ b/web/web.go @@ -62,5 +62,11 @@ func root(c *api.Context, w http.ResponseWriter, r *http.Request) { if !CheckBrowserCompatability(c, r) { return } + + if api.IsApiCall(r) { + api.Handle404(w, r) + return + } + http.ServeFile(w, r, utils.FindDir(CLIENT_DIR)+"root.html") } |