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) <noreply@anthropic.com>
This commit is contained in:
Darko Gjorgjijoski
2026-04-04 10:00:00 +02:00
parent a46cca5cd8
commit af92a361a5

View File

@@ -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',