diff --git a/handlers/routes.go b/handlers/routes.go index 2db26c1e..ffe130de 100644 --- a/handlers/routes.go +++ b/handlers/routes.go @@ -75,7 +75,7 @@ func Router() *mux.Router { r.Handle("/api", scoped(apiIndexHandler)) r.Handle("/api/setup", http.HandlerFunc(processSetupHandler)).Methods("POST") api.Handle("/api/login", http.HandlerFunc(apiLoginHandler)).Methods("POST") - api.Handle("/api/logout", authenticated(logoutHandler, false)) + api.Handle("/api/logout", http.HandlerFunc(logoutHandler)) api.Handle("/api/renew", authenticated(apiRenewHandler, false)) api.Handle("/api/cache", authenticated(apiCacheHandler, false)).Methods("GET") api.Handle("/api/clear_cache", authenticated(apiClearCacheHandler, false)) @@ -160,7 +160,6 @@ func Router() *mux.Router { // API Generic Routes r.Handle("/metrics", readOnly(prometheusHandler, false)) r.Handle("/health", http.HandlerFunc(healthCheckHandler)) - api.Handle("/api/oauth/{provider}", http.HandlerFunc(oauthHandler)) r.Handle("/.well-known/", http.StripPrefix("/.well-known/", http.FileServer(http.Dir(dir+"/.well-known")))) r.NotFoundHandler = http.HandlerFunc(error404Handler) return r