MCPcopy Create free account
hub / github.com/mlco2/codecarbon / getProjects

Function getProjects

webapp/src/api/projects.ts:27–37  ·  view source on GitHub ↗
(organizationId: string)

Source from the content-addressed store, hash-verified

25}
26
27export async function getProjects(organizationId: string): Promise<Project[]> {
28 try {
29 return await fetchApi(
30 `/projects?organization=${organizationId}`,
31 ProjectSchema.array(),
32 );
33 } catch (error) {
34 console.error("[getProjects] failed", error);
35 return [];
36 }
37}
38
39export async function getOneProject(
40 projectId: string,

Callers 1

refreshProjectListFunction · 0.90

Calls 1

fetchApiFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…