weee
This commit is contained in:
@@ -27,7 +27,7 @@ export async function logoutUser(): Promise<void> {
|
||||
|
||||
if (token) {
|
||||
try {
|
||||
await fetch(`${process.env.NEXT_PUBLIC_API_URL}/auth/logout`, {
|
||||
await fetch(`/api/auth/logout`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': `Bearer ${token}`,
|
||||
|
||||
Reference in New Issue
Block a user