Files
coolify/src/routes/register/index.ts
Restray 943300509b Revert "Add Locale URL"
This reverts commit d910b21185.
2022-04-02 19:29:22 +02:00

12 lines
325 B
TypeScript

import * as db from '$lib/database';
import { ErrorHandler } from '$lib/database';
import type { RequestHandler } from '@sveltejs/kit';
export const get: RequestHandler = async () => {
try {
return { status: 200, body: { userCount: await db.prisma.user.count() } };
} catch (error) {
return ErrorHandler(error);
}
};