File size: 599 Bytes
d5110ae | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import { ok, route } from '@/lib/api';
import { customers, finishingServices, giaCongPrices, kemGiayPrices, offsetMachines, orders, papers, settings } from '@/lib/repositories';
/** Toàn bộ dữ liệu danh mục cho màn hình tính giá – 1 request duy nhất */
export const GET = route(async () =>
ok({
papers: papers.list(),
offsetMachines: offsetMachines.list(),
giaCong: giaCongPrices.list(),
kemGiay: kemGiayPrices.list(),
finishing: finishingServices.list(),
customers: customers.list(),
settings: settings.get(),
orderCount: orders.count(),
})
);
|