diff options
Diffstat (limited to 'server/admin')
-rw-r--r-- | server/admin/handler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/admin/handler.go b/server/admin/handler.go index fa2dfb4..0aa9659 100644 --- a/server/admin/handler.go +++ b/server/admin/handler.go @@ -34,7 +34,7 @@ func (adminHandler *AdminHandler) ServeHTTP(responseWriter http.ResponseWriter, switch { case request.Method == http.MethodOptions: responseWriter.WriteHeader(http.StatusOK) - case request.Method == http.MethodPost && request.URL.Path == "/admin/login": + case request.Method == http.MethodPost && request.URL.Path == "/api/admin/login": adminHandler.handleLogIn(responseWriter, request) default: responseWriter.WriteHeader(http.StatusNotFound) |