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

Function listDashboards

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

Source from the content-addressed store, hash-verified

628// ---------------------------------------------------------------------------
629
630export async function listDashboards(
631 req: FastifyRequest<{ Params: { projectId?: string } }>,
632 reply: FastifyReply
633) {
634 const projectId = await getProjectId(req as RequestWithProjectParam);
635 return reply.send(await listDashboardsCore({ projectId, organizationId: getOrgId(req as RequestWithProjectParam) }));
636}
637
638export async function listReports(
639 req: FastifyRequest<{ Params: { projectId?: string; dashboardId: string } }>,

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected