feat: Initialize project with configuration files and basic structure

This commit is contained in:
Thibault Pouch
2026-05-01 10:57:26 +02:00
parent 268f7949dc
commit c2920dbbdc
11 changed files with 151 additions and 0 deletions

6
middleware/auth.ts Normal file
View File

@@ -0,0 +1,6 @@
import { useAuthStore } from '~/stores/auth';
export default defineNuxtRouteMiddleware(() => {
const auth = useAuthStore();
if (!auth.isAuthenticated) return navigateTo('/login');
});