summaryrefslogtreecommitdiff
path: root/src/api/routes/paths.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-10-04 22:49:07 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-10-04 22:49:25 +0200
commit751a9ef3a12c952fe179f256d854d0c4aa37e28e (patch)
tree241fc22c592a277526e73cc70ea0f95d5a8a7b29 /src/api/routes/paths.js
parent9257d89ec2e22b65ffecc7dc7cf67b7a74c34d60 (diff)
Apply prettier to codebase
Diffstat (limited to 'src/api/routes/paths.js')
-rw-r--r--src/api/routes/paths.js36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/api/routes/paths.js b/src/api/routes/paths.js
index 073cbe7e..78ef7d6e 100644
--- a/src/api/routes/paths.js
+++ b/src/api/routes/paths.js
@@ -1,30 +1,30 @@
-import {sendRequest} from "../index";
-import {getById} from "./util";
+import { sendRequest } from "../index";
+import { getById } from "./util";
export function getPath(pathId) {
- return getById("/paths/{pathId}", {pathId});
+ return getById("/paths/{pathId}", { pathId });
}
export function getBranchesOfPath(pathId) {
- return getById("/paths/{pathId}/branches", {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: {}
- }
- });
+ return sendRequest({
+ path: "/paths/{pathId}/branches",
+ method: "POST",
+ parameters: {
+ body: {
+ section
+ },
+ path: {
+ pathId
+ },
+ query: {}
+ }
+ });
}
export function getSectionsOfPath(pathId) {
- return getById("/paths/{pathId}/sections", {pathId});
+ return getById("/paths/{pathId}/sections", { pathId });
}