(
req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGscLimitQuery> }>,
reply: FastifyReply
)
| 671 | export const zGscLimitQuery = zDateRange.extend({ limit: z.number().int().min(1).max(1000).default(100) }); |
| 672 | |
| 673 | export async function gscPages( |
| 674 | req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGscLimitQuery> }>, |
| 675 | reply: FastifyReply |
| 676 | ) { |
| 677 | const projectId = await getProjectId(req as RequestWithProjectParam); |
| 678 | const { startDate, endDate } = await resolveDates(projectId, req.query); |
| 679 | return reply.send(await gscGetTopPagesCore({ projectId, startDate, endDate, limit: req.query.limit })); |
| 680 | } |
| 681 | |
| 682 | export const zGscPageDetailsQuery = zDateRange.extend({ page: z.string().url() }); |
| 683 |
nothing calls this directly
no test coverage detected