(
req: FastifyRequest<{
Params: { projectId?: string };
Querystring: z.infer<typeof zOverviewQuery>;
}>,
reply: FastifyReply
)
| 119 | }); |
| 120 | |
| 121 | export async function getOverview( |
| 122 | req: FastifyRequest<{ |
| 123 | Params: { projectId?: string }; |
| 124 | Querystring: z.infer<typeof zOverviewQuery>; |
| 125 | }>, |
| 126 | reply: FastifyReply |
| 127 | ) { |
| 128 | const projectId = await getProjectId(req as RequestWithProjectParam); |
| 129 | const { startDate, endDate } = await resolveDates(projectId, req.query); |
| 130 | return reply.send( |
| 131 | await getAnalyticsOverviewCore({ projectId, startDate, endDate, interval: req.query.interval }) |
| 132 | ); |
| 133 | } |
| 134 | |
| 135 | // --------------------------------------------------------------------------- |
| 136 | // Analytics — metrics (legacy) |
nothing calls this directly
no test coverage detected