forked from Wroclaw/WorkshopTasker
Wroclaw
eebf25198d
also I updated packages, and properly typed api input a lot of time was spent, I don't remeber what really I did x3 but everything was related to replacing mysql2 with prisma
9 lines
208 B
TypeScript
9 lines
208 B
TypeScript
import { defineEventHandler } from "h3";
|
|
|
|
import { database } from "~/server/utils/database";
|
|
|
|
export default defineEventHandler(async (e) => {
|
|
return {
|
|
count: await database.client.count({}),
|
|
};
|
|
});
|