WorkshopTasker/server/api/clients.get.ts

11 lines
361 B
TypeScript

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