Refactored send. Purged pages api routes.

This commit is contained in:
Mike Cao 2025-01-31 00:15:39 -08:00
parent 5205551ca8
commit 85382e25af
69 changed files with 286 additions and 4118 deletions

View file

@ -16,8 +16,8 @@ export async function POST(request: Request) {
const schema = z.object({
websiteId: z.string().uuid(),
dateRange: z.object({
startDate: z.date(),
endDate: z.date(),
startDate: z.coerce.date(),
endDate: z.coerce.date(),
}),
fields: z
.array(
@ -36,12 +36,6 @@ export async function POST(request: Request) {
value: z.string(),
}),
),
groups: z.array(
z.object({
name: z.string(),
type: z.string(),
}),
),
});
const { auth, body, error } = await parseRequest(request, schema);