user preferences
All checks were successful
Deploy / publish-web (push) Successful in 2m14s

This commit is contained in:
2025-12-25 22:53:12 +06:00
parent c2cffd18de
commit 2ac88f1010
2 changed files with 1 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
if (!me.value) {
try {
setMe(await chadApi('/me', { method: 'GET' }))
return navigateTo({ name: 'Index' })
}
catch {
if (to.meta.auth !== 'guest') {