This commit is contained in:
2025-07-31 13:56:11 +07:00
parent ba5de3c7a7
commit df9fe7a112
32 changed files with 1585 additions and 42 deletions
+7
View File
@@ -0,0 +1,7 @@
export default defineNuxtRouteMiddleware((to, from) => {
const accessToken = useCookie('access_token').value;
if (!accessToken && to.path !== '/auth/login') {
return navigateTo('/auth/login');
}
})