Skip to content

Commit

Permalink
rename _initStatic to _initRoutes
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmdantas committed Sep 15, 2017
1 parent 00179d9 commit 951dc34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = class Server extends EventEmitter {
}

start() {
this._initStatic();
this._initRoutes();
this._createServer();
this._createWebSocketServer();
this._onConnection(() => this._clientConnected());
Expand Down Expand Up @@ -257,7 +257,7 @@ module.exports = class Server extends EventEmitter {
res.send(this._$.html());
}

_initStatic() {
_initRoutes() {
this._app.use(compression({
level: zlib.Z_BEST_COMPRESSION,
threshold: '1kb'
Expand Down

0 comments on commit 951dc34

Please sign in to comment.