summaryrefslogtreecommitdiff
path: root/server/admin/handler.go
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-09-28 10:55:35 -0700
committerMichael Hunteman <michael@huntm.net>2024-09-28 11:25:16 -0700
commit0154a152dd6d3606c9131f3186a9175ee5853185 (patch)
treea166f0cf3819607592fb5ee03255108563f4ba68 /server/admin/handler.go
parent99b5a49b5fcccb7c6523a95c67e39830bc2a2a45 (diff)
Use api endpoint for backend
Diffstat (limited to 'server/admin/handler.go')
-rw-r--r--server/admin/handler.go2
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)