summaryrefslogtreecommitdiffstats
path: root/server/api/ipxe.js
diff options
context:
space:
mode:
authorJannik Schönartz2018-08-20 19:01:46 +0200
committerJannik Schönartz2018-08-20 19:01:46 +0200
commit243384edd87ec58828901a2d1424548d8b94b34c (patch)
treefe854ee38c10fe112720597faa18eb20849b85d7 /server/api/ipxe.js
parentmerge (diff)
downloadbas-243384edd87ec58828901a2d1424548d8b94b34c.tar.gz
bas-243384edd87ec58828901a2d1424548d8b94b34c.tar.xz
bas-243384edd87ec58828901a2d1424548d8b94b34c.zip
[tftp] Remove tftp
Remove tftp server because an external tftp is used. Adding client from registrationscript is now working.
Diffstat (limited to 'server/api/ipxe.js')
-rw-r--r--server/api/ipxe.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/server/api/ipxe.js b/server/api/ipxe.js
index bed61a1..285a426 100644
--- a/server/api/ipxe.js
+++ b/server/api/ipxe.js
@@ -27,10 +27,7 @@ noAuthRouter.get('/load/script', (req, res) => {
noAuthRouter.get('/load/registration', (req, res) => {
res.setHeader('content-type', 'text/plain')
- fs.readFile(path.join(__appdir, 'ipxe', 'registration.ipxe'), 'utf-8', function (err, content) {
- if (err) res.end()
- res.send(content)
- })
+ res.sendFile(path.join(__appdir, 'ipxe', 'registration.ipxe'))
})
module.exports.noAuthRouter = noAuthRouter