diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-07-02 18:39:28 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:47:21 +0200 |
| commit | f119fc78dda4d1e828dde04f378a63a93e3a0a7e (patch) | |
| tree | bea1eace5d47f21a7ccb835c6a6079bc92e48710 /frontend/src/api/routes/paths.js | |
| parent | 7f27a6370a0af25e1bf6ff8f46360c6c26c21e0b (diff) | |
Add current progress on frontend port
Diffstat (limited to 'frontend/src/api/routes/paths.js')
| -rw-r--r-- | frontend/src/api/routes/paths.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/frontend/src/api/routes/paths.js b/frontend/src/api/routes/paths.js deleted file mode 100644 index 74811ab2..00000000 --- a/frontend/src/api/routes/paths.js +++ /dev/null @@ -1,30 +0,0 @@ -import { sendRequest } from '../index' -import { getById } from './util' - -export function getPath(pathId) { - return getById('/paths/{pathId}', { pathId }) -} - -export function getBranchesOfPath(pathId) { - return getById('/paths/{pathId}/branches', { pathId }) -} - -export function branchFromPath(pathId, section) { - return sendRequest({ - path: '/paths/{pathId}/branches', - method: 'POST', - parameters: { - body: { - section, - }, - path: { - pathId, - }, - query: {}, - }, - }) -} - -export function getSectionsOfPath(pathId) { - return getById('/paths/{pathId}/sections', { pathId }) -} |
