feat(frontend-api): add listProjects() to graph API client
This commit is contained in:
parent
17a547e9f0
commit
1eae54346f
|
|
@ -98,3 +98,15 @@ export function deleteProject(projectId) {
|
||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Llista tots els projectes (per a la Recovery UI)
|
||||||
|
* @param {Number} limit - Màxim de projectes a retornar (default 50)
|
||||||
|
* @returns {Promise}
|
||||||
|
*/
|
||||||
|
export function listProjects(limit = 50) {
|
||||||
|
return service({
|
||||||
|
url: `/api/graph/project/list?limit=${limit}`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue