mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 13:36:14 +00:00
fix identation
This commit is contained in:
parent
bf02e88e3c
commit
a549f96539
@ -38,20 +38,20 @@ class Server {
|
|||||||
|
|
||||||
expressWebSocket(app);
|
expressWebSocket(app);
|
||||||
|
|
||||||
if (self.plugins) {
|
if (self.plugins) {
|
||||||
let apiCalls = self.plugins.getPluginsProperty("apiCalls", "apiCalls");
|
let apiCalls = self.plugins.getPluginsProperty("apiCalls", "apiCalls");
|
||||||
for (let apiCall of apiCalls) {
|
for (let apiCall of apiCalls) {
|
||||||
console.dir("adding " + apiCall.method + " " + apiCall.endpoint);
|
console.dir("adding " + apiCall.method + " " + apiCall.endpoint);
|
||||||
app[apiCall.method].apply(app, [apiCall.endpoint, apiCall.cb]);
|
app[apiCall.method].apply(app, [apiCall.endpoint, apiCall.cb]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.enableCatchAll === true) {
|
if (this.enableCatchAll === true) {
|
||||||
app.get('/*', function (req, res) {
|
app.get('/*', function (req, res) {
|
||||||
self.logger.trace('webserver> GET ' + req.path);
|
self.logger.trace('webserver> GET ' + req.path);
|
||||||
res.sendFile(path.join(fs.dappPath(self.dist, 'index.html')));
|
res.sendFile(path.join(fs.dappPath(self.dist, 'index.html')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
app.listen(this.port);
|
app.listen(this.port);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user