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:
@@ -41,7 +41,7 @@ export function logoutUser() {
|
||||
|
||||
export async function checkAuth() {
|
||||
try {
|
||||
const res = await fetch('/api/me', { method: 'GET' })
|
||||
const res = await fetch('/api/auth/me', { method: 'GET' })
|
||||
if (res.ok) {
|
||||
const data = await res.json()
|
||||
currentUserId.value = data.id
|
||||
|
||||
Reference in New Issue
Block a user