From 0154a152dd6d3606c9131f3186a9175ee5853185 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Sat, 28 Sep 2024 10:55:35 -0700 Subject: Use api endpoint for backend --- server/admin/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/admin/handler.go') 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) -- cgit v1.2.3