From f70e2e4bcda597abfb5235a8f6c1fe164e90e0fc Mon Sep 17 00:00:00 2001 From: mkelvers Date: Tue, 26 May 2026 23:08:03 +0200 Subject: [PATCH] fix: add POST /login to public routes --- internal/auth/middleware/middleware.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/auth/middleware/middleware.go b/internal/auth/middleware/middleware.go index ed8d12e..2da141f 100644 --- a/internal/auth/middleware/middleware.go +++ b/internal/auth/middleware/middleware.go @@ -17,6 +17,7 @@ type publicRoute struct { var publicRoutes = []publicRoute{ // Pages. {method: http.MethodGet, path: "/login"}, + {method: http.MethodPost, path: "/login"}, {method: http.MethodGet, path: "/logout"}, // Static assets.