Pass plugin as options

This commit is contained in:
Anthony Laibe 2018-10-01 09:53:30 +01:00
parent bc93204bd4
commit aa729607c9
2 changed files with 1 additions and 1 deletions

View File

@ -34,6 +34,7 @@ class WebServer {
events: this.events,
host: this.host,
port: this.port,
plugins: this.plugins,
openBrowser: this.webServerConfig.openBrowser
});

View File

@ -62,7 +62,6 @@ class Server {
if (self.plugins) {
let apiCalls = self.plugins.getPluginsProperty("apiCalls", "apiCalls");
this.app.get('/embark-api/plugins', function(req, res) {
res.send(JSON.stringify(self.plugins.plugins.map((plugin) => {
return {name: plugin.name};