mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 15:17:23 +01:00
Convert send route to pages api.
This commit is contained in:
parent
26463973cb
commit
d124b429b6
3 changed files with 206 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue