This commit is contained in:
Florian Federspiel
2023-11-25 16:53:52 +01:00
commit 677030f712
685 changed files with 148719 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
export default defineNuxtRouteMiddleware((to, _from) => {
const user = useStrapiUser()
if (!user.value) {
useCookie('redirect', { path: '/' }).value = to.fullPath
return navigateTo('/login')
}
})