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

Function getOneProject

webapp/src/api/projects.ts:39–48  ·  view source on GitHub ↗
(
    projectId: string,
)

Source from the content-addressed store, hash-verified

37}
38
39export async function getOneProject(
40 projectId: string,
41): Promise<Project | null> {
42 try {
43 return await fetchApi(`/projects/${projectId}`, ProjectSchema);
44 } catch (error) {
45 console.error("[getOneProject] failed", error);
46 return null;
47 }
48}
49
50export async function deleteProject(projectId: string): Promise<void> {
51 await fetchApiVoid(`/projects/${projectId}`, {

Callers 3

ProjectDashboardPageFunction · 0.90
handleSettingsClickFunction · 0.90
fetchProjectFunction · 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…