Skip to content

Commit

Permalink
fix: api url
Browse files Browse the repository at this point in the history
  • Loading branch information
alarv committed Sep 27, 2024
1 parent 5afc907 commit 2077ffa
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/api/auth/validate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ export async function GET(
401,
);
}
const res = await fetch(`${process.env.API_URL}/v1/auth/validate`, {
headers: {
Authorization: `Bearer ${session!.token}`,
'Content-Type': 'application/json',
const res = await fetch(
`${process.env.NEXT_PUBLIC_API_URL}/v1/auth/validate`,
{
headers: {
Authorization: `Bearer ${session!.token}`,
'Content-Type': 'application/json',
},
},
});
);

return handleApiResponse(res);
}

0 comments on commit 2077ffa

Please sign in to comment.