Fix master web interface

Fix the breaking changes to the plugin struture and remove slave
information that is no longer present.
This commit is contained in:
Hornwitser committed 2020-03-13 22:46:17 +01:00
1 parent 090fbd6dff
commit d9fe408c42
3 files changed
+17 -24

No files matched your search

+2 -1
View File
@@ -67,12 +67,13 @@ app.use(compression());
// dynamic HTML generations with EJS
app.set('view engine', 'ejs');
app.set('views', ['views', 'sharedPlugins']);
app.set('views', ['views', 'plugins']);
// give ejs access to some interesting information
app.use(function(req, res, next){
res.locals.res = res;
res.locals.req = req;
res.locals.masterPlugins = masterPlugins;
res.locals.slaves = db.slaves;
res.locals.moment = moment;
next();