Serve interface on all routes for the interface

Add all routes the web interface is served on to the express app and
serve the index.html file on.  Due to the index html not knowing which
path it's hosted under, a path to the root of the web interface is
replaced using string substitution from the master server.
This commit is contained in:
Hornwitser committed 2020-09-28 05:51:11 +02:00
1 parent 392a7655c4
commit 94200433cc
9 files changed
+173 -162

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
"use strict";
// Routes used in the web interface and served by the master server
module.exports = [
"/",
"/instances",
"/instances/:id/view",
"/slaves",
"/slaves/:id/view",
"/users",
"/users/:id/view",
"/roles",
"/roles/:id/view",
"/permissions",
"/permissions/:id/view",
"/settings",
];