Commit fe150572 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Check for empty path in api.

parent e8ea7079
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment