(
req: FastifyRequest<{
Params: { projectId?: string };
Querystring: z.infer<typeof zDateRange>;
}>,
reply: FastifyReply
)
| 221 | // --------------------------------------------------------------------------- |
| 222 | |
| 223 | export async function getTopPages( |
| 224 | req: FastifyRequest<{ |
| 225 | Params: { projectId?: string }; |
| 226 | Querystring: z.infer<typeof zDateRange>; |
| 227 | }>, |
| 228 | reply: FastifyReply |
| 229 | ) { |
| 230 | const projectId = await getProjectId(req as RequestWithProjectParam); |
| 231 | const { startDate, endDate } = await resolveDates(projectId, req.query); |
| 232 | return reply.send(await getTopPagesCore({ projectId, startDate, endDate })); |
| 233 | } |
| 234 | |
| 235 | export const zGetTopPagesQuery = z.object({ |
| 236 | filters: z.array(zChartEventFilter).default([]), |
nothing calls this directly
no test coverage detected