mirror of
https://github.com/BillyOutlast/drop.git
synced 2026-02-04 00:31:17 +01:00
9 lines
291 B
TypeScript
9 lines
291 B
TypeScript
import prisma from "~/server/internal/db/database";
|
|
import { defineClientEventHandler } from "~/server/internal/clients/event-handler";
|
|
|
|
export default defineClientEventHandler(async () => {
|
|
const depots = await prisma.depot.findMany({ select: { endpoint: true } });
|
|
|
|
return depots;
|
|
});
|