chore(#4): Add a database connection to mongodb

This commit is contained in:
Josh Creek
2024-04-06 15:04:53 +01:00
parent 5650a6d8d7
commit 3c1ae70392
7 changed files with 817 additions and 88 deletions
+9
View File
@@ -0,0 +1,9 @@
import type { Handle } from '@sveltejs/kit';
import { dbConnect } from '$lib/utils/db';
await dbConnect();
export const handle: Handle = async ({ event, resolve }) => {
const response = await resolve(event);
return response;
};