WorkshopTasker/server/api/clients.get.ts

10 lines
319 B
TypeScript

/* global defineEventHandler getQuery, createError */
import BaaPagination from "~/server/utils/baaPagination";
import { client } from "~/utils/types/database";
export const baaWrapper = new BaaPagination<client, "id">("clients", "id");
export default defineEventHandler((e) => {
return baaWrapper.RESTget(e);
});