aboutsummaryrefslogtreecommitdiff
path: root/src/domain/middleware.js
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2021-09-19 19:43:11 +0200
committerJakob Stendahl <jakob.stendahl@outlook.com>2021-09-19 19:43:11 +0200
commit7bdce37fd3f18e2712e18c4e2c64cac69af0aca1 (patch)
treeb7ad3f1cca92e2dfd2664ae9e65652bd03ff58b2 /src/domain/middleware.js
parente6880cd8ccf82d993f222cb14b4860581654acb8 (diff)
downloadLuxcena-Neo-7bdce37fd3f18e2712e18c4e2c64cac69af0aca1.tar.gz
Luxcena-Neo-7bdce37fd3f18e2712e18c4e2c64cac69af0aca1.zip
:boom: Introduce new UI based on svelte, and rewrite a lot of the node app and the NeoRuntime
Diffstat (limited to 'src/domain/middleware.js')
-rw-r--r--src/domain/middleware.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/domain/middleware.js b/src/domain/middleware.js
deleted file mode 100644
index ebd00f8..0000000
--- a/src/domain/middleware.js
+++ /dev/null
@@ -1,40 +0,0 @@
-module.exports = function(options) {
- return function(req, res, next) {
- let dirPublic = options.srcDir + "/public/";
-
- if (global.runtimeData.get("updaterRunning") === true) {
- res.sendFile(dirPublic + "/update/index.html");
- return;
- }
-
- switch (req.path) {
-
- case "/":
- res.sendFile(dirPublic + "index.html");
- return;
-
- case "/scripts":
- res.sendFile(dirPublic + "scripts.html");
- return;
-
- case "/strip_setup":
- res.sendFile(dirPublic + "strip_setup.html");
- return;
-
- case "/neo_ide":
- res.sendFile(dirPublic + "neo_ide.html");
- return;
-
- case "/logviewer":
- res.sendFile(dirPublic + "logviewer.html");
- return;
-
- case "/settings":
- res.sendFile(dirPublic + "settings.html");
- return;
-
- }
-
- next()
- }
-}