feat(admin): add categories and teams management page

This commit is contained in:
gabdevele
2026-06-15 12:48:18 +02:00 Unverified
parent 48f0f65dc1
commit 8bf6f29561
13 changed files with 354 additions and 52 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
export default defineNuxtRouteMiddleware(async () => {
export default defineNuxtRouteMiddleware(async (to) => {
const auth = useAuth()
if ((auth.token.value || auth.tokenState.value) && !auth.user.value && !auth.isSyncingUser.value) {
try {
await auth.syncUser()
await auth.syncUser({ currentPath: to.path })
} catch (error) {
console.error('[Guest Middleware] Sync failed:', error)
}