MCPcopy
hub / github.com/caprover/caprover / getAllProjects

Method getAllProjects

src/datastore/ProjectsDataStore.ts:113–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 }
112
113 getAllProjects(): Promise<ProjectDefinition[]> {
114 const self = this
115 return Promise.resolve()
116 .then(function () {
117 return self.data.get(PROJECTS_DEFINITIONS)
118 })
119 .then(function (projects) {
120 projects = projects || {}
121 return Object.keys(projects).map((key) => projects[key]) || []
122 })
123 }
124
125 getProject(projectId: string): Promise<ProjectDefinition> {
126 const self = this

Callers 4

saveProjectMethod · 0.80
deleteProjectsMethod · 0.80
deleteProjectMethod · 0.80
ProjectsRouter.tsFile · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected