MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / listReports

Function listReports

apps/api/src/controllers/insights.controller.ts:638–644  ·  view source on GitHub ↗
(
  req: FastifyRequest<{ Params: { projectId?: string; dashboardId: string } }>,
  reply: FastifyReply
)

Source from the content-addressed store, hash-verified

636}
637
638export async function listReports(
639 req: FastifyRequest<{ Params: { projectId?: string; dashboardId: string } }>,
640 reply: FastifyReply
641) {
642 const projectId = await getProjectId(req as RequestWithProjectParam);
643 return reply.send(await listReportsCore({ projectId, dashboardId: req.params.dashboardId, organizationId: getOrgId(req as RequestWithProjectParam) }));
644}
645
646export async function getReportData(
647 req: FastifyRequest<{ Params: { projectId?: string; reportId: string } }>,

Callers

nothing calls this directly

Calls 4

listReportsCoreFunction · 0.90
getOrgIdFunction · 0.85
getProjectIdFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected