Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Fixed route validation.
Mike Cao5c2cb970701c
diff --git a/src/app/api/send/route.ts b/src/app/api/send/route.tsindex 8c9acad99..4b1db0178 100644--- a/src/app/api/send/route.ts+++ b/src/app/api/send/route.ts@@ -18,7 +18,7 @@ export async function POST(request: Request) {}const schema = z.object({- type: z.enum(['event', 'identity']),+ type: z.enum(['event', 'identify']),payload: z.object({website: z.string().uuid(),data: z.object({}).passthrough().optional(),@@ -189,5 +189,5 @@ export async function POST(request: Request) {const token = createToken({ websiteId, sessionId, visitId, iat }, secret());- return json({ cache: token });+ return json({ cache: token, websiteId, sessionId, visitId, iat });}