diff --git a/lib/modules/webserver/server.js b/lib/modules/webserver/server.js index 21ddeb65..e5ae3a51 100644 --- a/lib/modules/webserver/server.js +++ b/lib/modules/webserver/server.js @@ -77,13 +77,13 @@ class Server { }); }); - if (self.plugins) { - let apiCalls = self.plugins.getPluginsProperty("apiCalls", "apiCalls"); - for (let apiCall of apiCalls) { - console.dir("adding " + apiCall.method + " " + apiCall.endpoint); - app[apiCall.method].apply(app, [apiCall.endpoint, apiCall.cb]); - } - } + if (self.plugins) { + let apiCalls = self.plugins.getPluginsProperty("apiCalls", "apiCalls"); + for (let apiCall of apiCalls) { + console.dir("adding " + apiCall.method + " " + apiCall.endpoint); + app[apiCall.method].apply(app, [apiCall.endpoint, apiCall.cb]); + } + } this.app.ws('/', function(ws, _req) { self.events.on('outputDone', () => {