Convert send route to pages api.

This commit is contained in:
Mike Cao 2025-02-10 14:34:55 -08:00
parent 26463973cb
commit d124b429b6
3 changed files with 206 additions and 1 deletions

View file

@ -7,7 +7,7 @@ import { getWebsiteDateRange } from '@/queries';
export async function getJsonBody(request: Request) {
try {
return await request.clone().json();
return request.clone().json();
} catch {
return undefined;
}