aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.js3
-rw-r--r--package.json1
2 files changed, 4 insertions, 0 deletions
diff --git a/app.js b/app.js
index 54695c5..58188e4 100644
--- a/app.js
+++ b/app.js
@@ -3,6 +3,7 @@ const path = require('path')
const logger = require('morgan')
const cookieParser = require('cookie-parser')
const bodyParser = require('body-parser')
+const compression = require('compression')
const routes = require('./routes/index')
const meetingpointProxy = require('./routes/meetingpointProxy')
@@ -10,6 +11,8 @@ const hello = require('./routes/hello')
const app = express()
+app.use(compression())
+
// view engine setup
app.set('views', path.join(__dirname, 'views'))
app.set('view engine', 'jade')
diff --git a/package.json b/package.json
index 26f274b..184d026 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
"body-parser": "~1.15.1",
"browser-request": "^0.3.3",
"cheerio": "^0.22.0",
+ "compression": "^1.6.2",
"cookie-parser": "~1.4.3",
"debug": "~2.2.0",
"diacritics": "^1.2.3",