mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 07:24:52 +09:00
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:
1 parent
090fbd6dff
commit
d9fe408c42
3 files changed
+17
-24
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user