fix identation
This commit is contained in:
parent
6abfcbd5a1
commit
06a62a03da
|
@ -45,20 +45,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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue