summaryrefslogtreecommitdiffstats
path: root/server/router.js
diff options
context:
space:
mode:
authorJannik Schönartz2018-07-31 15:42:43 +0200
committerJannik Schönartz2018-07-31 15:42:43 +0200
commit331cea8ca1f2d399f87feaf12665d5461ea962d9 (patch)
tree1ca3fdd5b1f57c59817f359029843719fb121ffc /server/router.js
parent[webapp/external-backends] Splitted the edit and delete Dialog. (diff)
downloadbas-331cea8ca1f2d399f87feaf12665d5461ea962d9.tar.gz
bas-331cea8ca1f2d399f87feaf12665d5461ea962d9.tar.xz
bas-331cea8ca1f2d399f87feaf12665d5461ea962d9.zip
[server/ipxe] Fixed the embedded ipxe script to the router restructure.
Diffstat (limited to 'server/router.js')
-rw-r--r--server/router.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/router.js b/server/router.js
index 7d5613a..e460771 100644
--- a/server/router.js
+++ b/server/router.js
@@ -10,6 +10,10 @@ router.post('/signup', auth.signup)
router.post('/logout', auth.logout)
router.post('/changepassword', auth.changePassword)
+// Public callable functions.
+var ipxe = require(path.join(__dirname, 'api', 'ipxe'))
+router.get('/ipxe/loadScript', ipxe.get.loadScript)
+
// ############ Legacy Code: TODO(Chris): Rework to api and get/post or delete! ############
// User API
var user = require(path.join(__dirname, 'api', 'user'))