summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/api/portfolios.js
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-web/opendc-web-ui/src/api/portfolios.js')
-rw-r--r--opendc-web/opendc-web-ui/src/api/portfolios.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/opendc-web/opendc-web-ui/src/api/portfolios.js b/opendc-web/opendc-web-ui/src/api/portfolios.js
index 36709b36..82ac0ced 100644
--- a/opendc-web/opendc-web-ui/src/api/portfolios.js
+++ b/opendc-web/opendc-web-ui/src/api/portfolios.js
@@ -26,6 +26,10 @@ export function fetchPortfolio(auth, portfolioId) {
return request(auth, `portfolios/${portfolioId}`)
}
+export function fetchPortfoliosOfProject(auth, projectId) {
+ return request(auth, `projects/${projectId}/portfolios`)
+}
+
export function addPortfolio(auth, portfolio) {
return request(auth, `projects/${portfolio.projectId}/portfolios`, 'POST', { portfolio })
}