mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-19 10:47:36 +00:00
Pass plugin as options
This commit is contained in:
parent
bc93204bd4
commit
aa729607c9
@ -34,6 +34,7 @@ class WebServer {
|
|||||||
events: this.events,
|
events: this.events,
|
||||||
host: this.host,
|
host: this.host,
|
||||||
port: this.port,
|
port: this.port,
|
||||||
|
plugins: this.plugins,
|
||||||
openBrowser: this.webServerConfig.openBrowser
|
openBrowser: this.webServerConfig.openBrowser
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -62,7 +62,6 @@ class Server {
|
|||||||
|
|
||||||
if (self.plugins) {
|
if (self.plugins) {
|
||||||
let apiCalls = self.plugins.getPluginsProperty("apiCalls", "apiCalls");
|
let apiCalls = self.plugins.getPluginsProperty("apiCalls", "apiCalls");
|
||||||
|
|
||||||
this.app.get('/embark-api/plugins', function(req, res) {
|
this.app.get('/embark-api/plugins', function(req, res) {
|
||||||
res.send(JSON.stringify(self.plugins.plugins.map((plugin) => {
|
res.send(JSON.stringify(self.plugins.plugins.map((plugin) => {
|
||||||
return {name: plugin.name};
|
return {name: plugin.name};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user