export default defineNuxtRouteMiddleware(() => {
    const auth = useAuthStore()

    if (!auth.isAuthenticated || !auth.user?.roles?.includes('ROLE_ADMIN')) {
        return navigateTo('/')
    }
})
