fixed theme picker. Added basic login

This commit is contained in:
2025-07-07 14:59:06 +02:00
parent 36d5f98dc9
commit 7268fdd356
6 changed files with 210 additions and 14 deletions

View File

@@ -0,0 +1,13 @@
export default defineNuxtRouteMiddleware((to, _) => {
const auth = useAuth()
if (to.path === '/login') {
return
}
if (auth.userId.value === null) {
return navigateTo('/login')
} else if (to.path !== '/') {
return navigateTo('/')
}
})