summaryrefslogtreecommitdiff
path: root/src/api/routes/sections.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-08-22 17:08:55 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:44 +0200
commit1ddbbd3563af77a218020021ea50a8832900b4db (patch)
tree5647f9cfde2de3918eeeac58d6c598bb55e50d82 /src/api/routes/sections.js
parent602c3eb9327a3681f5a220e13b8291bb60643cd7 (diff)
Add route logic for construction routes
Diffstat (limited to 'src/api/routes/sections.js')
-rw-r--r--src/api/routes/sections.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/routes/sections.js b/src/api/routes/sections.js
new file mode 100644
index 00000000..8d71d768
--- /dev/null
+++ b/src/api/routes/sections.js
@@ -0,0 +1,5 @@
+import {getById} from "./util";
+
+export function getSection(sectionId) {
+ return getById("/sections/{sectionId}", {sectionId});
+}