summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/api/topologies.js
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-web/opendc-web-ui/src/api/topologies.js')
-rw-r--r--opendc-web/opendc-web-ui/src/api/topologies.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/opendc-web/opendc-web-ui/src/api/topologies.js b/opendc-web/opendc-web-ui/src/api/topologies.js
index 40685094..74fc1977 100644
--- a/opendc-web/opendc-web-ui/src/api/topologies.js
+++ b/opendc-web/opendc-web-ui/src/api/topologies.js
@@ -22,12 +22,12 @@
import { request } from './index'
-export function addTopology(auth, topology) {
- return request(auth, `projects/${topology.projectId}/topologies`, 'POST', { topology })
+export function fetchTopology(auth, topologyId) {
+ return request(auth, `topologies/${topologyId}`)
}
-export function getTopology(auth, topologyId) {
- return request(auth, `topologies/${topologyId}`)
+export function addTopology(auth, topology) {
+ return request(auth, `projects/${topology.projectId}/topologies`, 'POST', { topology })
}
export function updateTopology(auth, topology) {