From a549f96539dd2566663e94df3d93f2f308b0b521 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 16 Jul 2018 09:50:59 +0300 Subject: [PATCH] fix identation --- lib/modules/webserver/server.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/modules/webserver/server.js b/lib/modules/webserver/server.js index ad136325..950f533b 100644 --- a/lib/modules/webserver/server.js +++ b/lib/modules/webserver/server.js @@ -38,20 +38,20 @@ class Server { expressWebSocket(app); - 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]); + } + } - if (this.enableCatchAll === true) { - app.get('/*', function (req, res) { - self.logger.trace('webserver> GET ' + req.path); - res.sendFile(path.join(fs.dappPath(self.dist, 'index.html'))); - } - } + if (this.enableCatchAll === true) { + app.get('/*', function (req, res) { + self.logger.trace('webserver> GET ' + req.path); + res.sendFile(path.join(fs.dappPath(self.dist, 'index.html'))); + } + } app.listen(this.port);