feat: api v1 routes for calendar lists and notes

This commit is contained in:
ginnoir
2026-07-04 19:03:08 -05:00
parent ea5d1d050c
commit d4304b005c
25 changed files with 1141 additions and 236 deletions
+6 -1
View File
@@ -18,7 +18,12 @@ function parseBearerToken(request: Request): string | null {
}
async function resolveSessionAuth(): Promise<ApiAuthContext | null> {
const session = await auth();
let session;
try {
session = await auth();
} catch {
return null;
}
if (!session?.user?.id) return null;
const [row] = await db