Showing
1 changed file
with
2 additions
and
3 deletions
@@ -15,7 +15,7 @@ const yohoLib = require('yoho-node-lib'); | @@ -15,7 +15,7 @@ const yohoLib = require('yoho-node-lib'); | ||
15 | yohoLib.global(config); | 15 | yohoLib.global(config); |
16 | 16 | ||
17 | const express = require('express'); | 17 | const express = require('express'); |
18 | -//const compression = require('compression'); | 18 | +const compression = require('compression'); |
19 | const path = require('path'); | 19 | const path = require('path'); |
20 | const bodyParser = require('body-parser'); | 20 | const bodyParser = require('body-parser'); |
21 | const cookieParser = require('cookie-parser'); | 21 | const cookieParser = require('cookie-parser'); |
@@ -51,8 +51,7 @@ app.use(express.static(path.join(__dirname, 'public'))); | @@ -51,8 +51,7 @@ app.use(express.static(path.join(__dirname, 'public'))); | ||
51 | app.use(bodyParser.json()); | 51 | app.use(bodyParser.json()); |
52 | app.use(bodyParser.urlencoded({extended: false})); | 52 | app.use(bodyParser.urlencoded({extended: false})); |
53 | app.use(cookieParser()); | 53 | app.use(cookieParser()); |
54 | - | ||
55 | -// app.use(compression()); | 54 | +app.use(compression()); |
56 | 55 | ||
57 | app.use(session({ | 56 | app.use(session({ |
58 | name: 'yohobuy_session_cookie', | 57 | name: 'yohobuy_session_cookie', |
-
Please register or login to post a comment