2024-04-15 19:39:03 +02:00
|
|
|
export default defineNuxtRouteMiddleware(() => {
|
2023-12-16 19:21:03 +01:00
|
|
|
const authStore = useAuthStore()
|
|
|
|
|
if (authStore.check) {
|
2024-04-15 19:39:03 +02:00
|
|
|
return navigateTo({ name: "home" })
|
2023-12-16 19:21:03 +01:00
|
|
|
}
|
|
|
|
|
})
|