(
req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGeoQuery> }>,
reply: FastifyReply
)
| 398 | } |
| 399 | |
| 400 | export async function getTrafficGeo( |
| 401 | req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGeoQuery> }>, |
| 402 | reply: FastifyReply |
| 403 | ) { |
| 404 | const projectId = await getProjectId(req as RequestWithProjectParam); |
| 405 | const { startDate, endDate } = await resolveDates(projectId, req.query); |
| 406 | return reply.send(await getTrafficBreakdownCore({ projectId, startDate, endDate, column: req.query.breakdown as TrafficColumn })); |
| 407 | } |
| 408 | |
| 409 | export async function getTrafficDevices( |
| 410 | req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zDeviceQuery> }>, |
nothing calls this directly
no test coverage detected