2023-11-06 02:57:00 +01:00
|
|
|
import { defineEventHandler } from "h3";
|
2023-05-11 06:03:22 +02:00
|
|
|
|
2023-11-08 05:35:48 +01:00
|
|
|
import { database } from "~/server/utils/database";
|
2023-05-11 06:03:22 +02:00
|
|
|
|
2023-11-08 05:35:48 +01:00
|
|
|
export default defineEventHandler(async (e) => {
|
|
|
|
return {
|
|
|
|
count: await database.client.count({}),
|
|
|
|
};
|
2023-05-11 06:03:22 +02:00
|
|
|
});
|