10 lines
227 B
TypeScript
10 lines
227 B
TypeScript
|
|
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;
|
|
|