Refactor authentication routes to use '/auth' prefix in API calls
All checks were successful
Chore App Build and Push Docker Images / build-and-push (push) Successful in 38s
All checks were successful
Chore App Build and Push Docker Images / build-and-push (push) Successful in 38s
This commit is contained in:
@@ -213,7 +213,7 @@ function executeMenuItem(index: number) {
|
||||
|
||||
async function signOut() {
|
||||
try {
|
||||
await fetch('/api/logout', { method: 'POST' })
|
||||
await fetch('/api/auth/logout', { method: 'POST' })
|
||||
logoutUser()
|
||||
router.push('/auth')
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user