(
req: FastifyRequest<{
Params: { projectId?: string };
Querystring: z.infer<typeof zFunnelQuery>;
}>,
reply: FastifyReply
)
| 363 | }); |
| 364 | |
| 365 | export async function getFunnel( |
| 366 | req: FastifyRequest<{ |
| 367 | Params: { projectId?: string }; |
| 368 | Querystring: z.infer<typeof zFunnelQuery>; |
| 369 | }>, |
| 370 | reply: FastifyReply |
| 371 | ) { |
| 372 | const projectId = await getProjectId(req as RequestWithProjectParam); |
| 373 | const { startDate, endDate } = await resolveDates(projectId, req.query); |
| 374 | return reply.send( |
| 375 | await getFunnelCore({ projectId, startDate, endDate, steps: req.query.steps, windowHours: req.query.windowHours, groupBy: req.query.groupBy }) |
| 376 | ); |
| 377 | } |
| 378 | |
| 379 | // --------------------------------------------------------------------------- |
| 380 | // Analytics — traffic |
nothing calls this directly
no test coverage detected