diff options
Diffstat (limited to 'frontend/src/api/routes/topologies.js')
| -rw-r--r-- | frontend/src/api/routes/topologies.js | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/frontend/src/api/routes/topologies.js b/frontend/src/api/routes/topologies.js deleted file mode 100644 index a8f0d6b1..00000000 --- a/frontend/src/api/routes/topologies.js +++ /dev/null @@ -1,42 +0,0 @@ -import { deleteById, getById } from './util' -import { sendRequest } from '../index' - -export function addTopology(topology) { - return sendRequest({ - path: '/projects/{projectId}/topologies', - method: 'POST', - parameters: { - body: { - topology, - }, - path: { - projectId: topology.projectId, - }, - query: {}, - }, - }) -} - -export function getTopology(topologyId) { - return getById('/topologies/{topologyId}', { topologyId }) -} - -export function updateTopology(topology) { - return sendRequest({ - path: '/topologies/{topologyId}', - method: 'PUT', - parameters: { - body: { - topology, - }, - path: { - topologyId: topology._id, - }, - query: {}, - }, - }) -} - -export function deleteTopology(topologyId) { - return deleteById('/topologies/{topologyId}', { topologyId }) -} |
