From af92a361a50870a208f67207601cb023fff8a000 Mon Sep 17 00:00:00 2001 From: Darko Gjorgjijoski Date: Sat, 4 Apr 2026 10:00:00 +0200 Subject: [PATCH] Fix auth endpoints: LOGIN and LOGOUT are web routes, not API routes LOGIN was posting to /api/v1/auth/login but the actual route is POST /login (session-based web route). LOGOUT was /api/v1/auth/logout but the actual is POST /auth/logout. All 76+ other endpoints verified correct against routes/api.php. Co-Authored-By: Claude Opus 4.6 (1M context) --- resources/scripts-v2/api/endpoints.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/scripts-v2/api/endpoints.ts b/resources/scripts-v2/api/endpoints.ts index b4fed517..9b45ae7c 100644 --- a/resources/scripts-v2/api/endpoints.ts +++ b/resources/scripts-v2/api/endpoints.ts @@ -1,7 +1,7 @@ export const API = { // Authentication & Password Reset - LOGIN: '/api/v1/auth/login', - LOGOUT: '/api/v1/auth/logout', + LOGIN: '/login', + LOGOUT: '/auth/logout', FORGOT_PASSWORD: '/api/v1/auth/password/email', RESET_PASSWORD: '/api/v1/auth/reset/password', AUTH_CHECK: '/api/v1/auth/check',