diff --git a/webserver/api.go b/webserver/api.go index b497230..cdc7b8d 100644 --- a/webserver/api.go +++ b/webserver/api.go @@ -234,6 +234,10 @@ func apiGroupHandler(w http.ResponseWriter, r *http.Request, pth string) { } func usersHandler(w http.ResponseWriter, r *http.Request, g, pth string) { + if pth == "" { + http.NotFound(w, r) + return + } if pth == "/" { if !checkAdmin(w, r) { return