auth: authenticate all requests under /query
1 files changed, 1 insertions(+), 1 deletions(-) M auth/middleware.go
M auth/middleware.go => auth/middleware.go +1 -1
@@ 686,7 686,7 @@ func Middleware(conf ini.File, apiconf string) func(http.Handler) http.Handler { return func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/query" { if !strings.HasPrefix(r.URL.Path, "/query") { next.ServeHTTP(w, r) return }