Spaces:
Sleeping

PrintCal / src /app /api /machines /offset /route.ts
phucsd's picture
feat: rewrite pricing/imposition engine, safe SQLite migrations, REST APIs and full UI
d5110ae
Raw History Blame Contribute Delete
337 Bytes
import { collectionRoutes } from '@/lib/server';
import { offsetMachines } from '@/lib/repositories';
import { parseOffsetMachine } from '@/lib/validation';
const h = collectionRoutes({ list: () => offsetMachines.list(), parse: parseOffsetMachine, create: offsetMachines.create });
export const GET = h.GET;
export const POST = h.POST;