...
|
...
|
@@ -15,7 +15,7 @@ const yohoLib = require('yoho-node-lib'); |
|
|
yohoLib.global(config);
|
|
|
|
|
|
const express = require('express');
|
|
|
//const compression = require('compression');
|
|
|
const compression = require('compression');
|
|
|
const path = require('path');
|
|
|
const bodyParser = require('body-parser');
|
|
|
const cookieParser = require('cookie-parser');
|
...
|
...
|
@@ -51,8 +51,7 @@ app.use(express.static(path.join(__dirname, 'public'))); |
|
|
app.use(bodyParser.json());
|
|
|
app.use(bodyParser.urlencoded({extended: false}));
|
|
|
app.use(cookieParser());
|
|
|
|
|
|
// app.use(compression());
|
|
|
app.use(compression());
|
|
|
|
|
|
app.use(session({
|
|
|
name: 'yohobuy_session_cookie',
|
...
|
...
|
|