First commit

This commit is contained in:
2026-10-27 12:42:57 +01:00
commit 7dd9f4b14d
74 changed files with 33018 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import { authToken } from '~/utils/auth'
export default defineNuxtRouteMiddleware(to => {
const token = import.meta.server ? useCookie('commander-auth-token').value : authToken()
if (token) return
return navigateTo({ path: '/account', query: { next: to.fullPath } })
})