feat: initial commit - Band Management application

This commit is contained in:
2026-01-06 03:11:46 +01:00
commit 34e12e00b3
24543 changed files with 3991790 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { getServerSession } from '#auth'
export async function setAuthOnlyRoute(event, statusMessage = 'You must be signed in to access this API.') {
const session = await getServerSession(event)
if (!session) {
throw createError({
statusCode: 403,
statusMessage,
})
}
return session
}