diff --git a/.gitignore b/.gitignore index aee88fd..2df21cc 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ lib-cov *.pid *.gz +js pids logs results diff --git a/dmx-web.js b/dmx-web.js index 13dcdc6..b6b3366 100755 --- a/dmx-web.js +++ b/dmx-web.js @@ -52,6 +52,28 @@ function DMXWeb() { res.sendFile(__dirname + '/index.html'); }); + + app.get('/index.html', (req, res) => { + res.sendFile(__dirname + '/index.html'); + }); + + app.get('/js/jquery-ui.min.js', (req, res) => { + res.sendFile(__dirname + '/js/jquery-ui.min.js'); + }); + + app.get('/js/bootstrap.min.js', (req, res) => { + res.sendFile(__dirname + '/js/bootstrap.min.js'); + }); + + app.get('/js/jquery.min.js', (req, res) => { + res.sendFile(__dirname + '/js/jquery.min.js'); + }); + + app.get('/js/bootstrap-combined.min.css', (req, res) => { + res.sendFile(__dirname + '/js/bootstrap-combined.min.css'); + }); + + app.get('/config', (req, res) => { const response = {'devices': dmx.devices, 'universes': {}}; diff --git a/index.html b/index.html index 0e1cfc2..184bda1 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ DMX Lichtschalter - + - - - + + + @@ -250,6 +364,7 @@
+