mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-19 11:14:06 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user