mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-01-31 15:37:09 +01:00
fix signout
This commit is contained in:
@@ -81,7 +81,7 @@ const navigation: NavigationItem[] = [
|
||||
},
|
||||
{
|
||||
label: "Sign out",
|
||||
route: "/signout",
|
||||
route: "/auth/signout",
|
||||
prefix: "",
|
||||
},
|
||||
].filter((e) => e !== undefined);
|
||||
|
||||
@@ -42,6 +42,6 @@ const user = useUser();
|
||||
user.value = null;
|
||||
|
||||
// Redirect to signin page after signout
|
||||
await $dropFetch("/signout");
|
||||
await $dropFetch("/api/v1/auth/signout"); //TODO: add signout api route
|
||||
router.push("/auth/signin");
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user