Files
tower/apps/web/app/api/routes/batch/route.ts
T
2026-06-09 02:02:40 +05:30

14 lines
385 B
TypeScript

import { apiFetch, jsonResponse } from '../../../_lib/api';
export const dynamic = 'force-dynamic';
export async function POST(req: Request): Promise<Response> {
const body = await req.json();
const res = await apiFetch('/routes/batch', {
method: 'POST',
body: JSON.stringify(body),
});
const payload = await res.json();
return jsonResponse(payload, res.status);
}