Auth
This commit is contained in:
9
src/routes/+page.server.ts
Normal file
9
src/routes/+page.server.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
import prisma from '$lib/prisma';
|
||||
import type { PageServerLoad } from './$types';
|
||||
|
||||
export const load = (async () => {
|
||||
const response = await prisma.event.count();
|
||||
return { eventCount: response };
|
||||
}) satisfies PageServerLoad;
|
||||
|
||||
Reference in New Issue
Block a user