aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorBuildTools <Noah Loomans>2017-01-08 19:57:36 +0100
committerBuildTools <Noah Loomans>2017-01-08 19:57:36 +0100
commit478352e5e7c449bbac5d969623ebd291223256d8 (patch)
tree95f4eb4dc5b4333a492cc3233174f86287b6708c /app.js
parenta544597ff38b7468f2bff2d248ba0dfde4d05f92 (diff)
use gzip compression
Diffstat (limited to 'app.js')
-rw-r--r--app.js3
1 files changed, 3 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')