From d7786122426359583c59cdddf5d08318cb1fc633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdinand=20M=C3=BCtsch?= Date: Mon, 18 Apr 2022 21:32:30 +0200 Subject: [PATCH] fix: remove authentication requirement from diagnostics endpoint --- routes/api/diagnostics.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/routes/api/diagnostics.go b/routes/api/diagnostics.go index f903dbe..f22bf4a 100644 --- a/routes/api/diagnostics.go +++ b/routes/api/diagnostics.go @@ -6,7 +6,6 @@ import ( "github.com/gorilla/mux" conf "github.com/muety/wakapi/config" - "github.com/muety/wakapi/middlewares" "github.com/muety/wakapi/services" "github.com/muety/wakapi/utils" @@ -29,9 +28,6 @@ func NewDiagnosticsApiHandler(userService services.IUserService, diagnosticsServ func (h *DiagnosticsApiHandler) RegisterRoutes(router *mux.Router) { r := router.PathPrefix("/plugins/errors").Subrouter() - r.Use( - middlewares.NewAuthenticateMiddleware(h.userSrvc).Handler, - ) r.Path("").Methods(http.MethodPost).HandlerFunc(h.Post) }