mirror of
https://github.com/ArthurDanjou/arthome.git
synced 2026-02-02 12:27:48 +01:00
Working on arthome
This commit is contained in:
7
app/middleware/ghost.ts
Normal file
7
app/middleware/ghost.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export default defineNuxtRouteMiddleware(async () => {
|
||||
const { loggedIn } = useUserSession()
|
||||
|
||||
if (loggedIn.value) {
|
||||
return navigateTo('/')
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user