Download src/app/api/machines/offset/route.ts from phucsd/PrintCal: direct link, hf CLI and curl.
- Browser
- Download file 337 Bytes
-
https://huggingface.co/spaces/phucsd/PrintCal/resolve/main/src/app/api/machines/offset/route.ts
- Command line
-
hf download hf://spaces/phucsd/PrintCal/src/app/api/machines/offset/route.ts
-
curl -L -o route.ts https://huggingface.co/spaces/phucsd/PrintCal/resolve/main/src/app/api/machines/offset/route.ts
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; | |