feat(frontend-api): add listProjects() to graph API client

This commit is contained in:
Ubuntu 2026-05-03 01:30:11 +00:00
parent 17a547e9f0
commit 1eae54346f
1 changed files with 12 additions and 0 deletions

View File

@ -98,3 +98,15 @@ export function deleteProject(projectId) {
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'
})
}