Move push notification setting to separate page
Set up a dedicated Account Setttings page to hold account specific settings such as the push notifications.
This commit is contained in:
parent
d4cbbcbc2d
commit
ca51c07065
4 changed files with 38 additions and 4 deletions
8
middleware/authenticated.ts
Normal file
8
middleware/authenticated.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
export default defineNuxtRouteMiddleware((to, from) => {
|
||||
const { data: session } = useAccountSession();
|
||||
|
||||
if (!session.value) {
|
||||
console.log("Not logged in, redirecting to /login");
|
||||
return navigateTo("/login");
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue