mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-07-13 02:53:45 +00:00
chore(#4): Add a database connection to mongodb
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user