Complete sermon itinerary application with Nuxt 3, SQLite, authentication, and Docker deployment

This commit is contained in:
2025-10-01 22:15:01 -04:00
parent dacaea6fa4
commit 1b282c05fe
26 changed files with 1245 additions and 0 deletions

9
middleware/auth.ts Normal file
View File

@@ -0,0 +1,9 @@
export default defineNuxtRouteMiddleware(async (to, from) => {
if (import.meta.server) return
const { data } = await useFetch('/api/auth/verify')
if (!data.value?.authenticated) {
return navigateTo('/login')
}
})