Skip to content

Commit 402544b

Browse files
committed
fix(dashboard): update logout endpoint
1 parent b26742b commit 402544b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/components/navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export const Navbar = () => {
3737

3838
const logout = useMutation({
3939
mutationFn: () =>
40-
fetch(`${API_URL}/auth/logout`, {
41-
method: "POST",
40+
fetch(`${API_URL}/user/me`, {
41+
method: "DELETE",
4242
credentials: "include",
4343
}),
4444
onSuccess: () => {

0 commit comments

Comments
 (0)