feat (app): add middleware

This commit is contained in:
Abizrh
2025-08-08 11:07:46 +07:00
parent 44533af1b5
commit 153a346a47
+7
View File
@@ -0,0 +1,7 @@
export default defineNuxtRouteMiddleware((to, from) => {
// TODO: change this to actual api
const user = true
if (!user) {
return navigateTo('/auth/login')
}
})