...
|
...
|
@@ -13,6 +13,7 @@ const yohoLib = require('yoho-node-lib'); |
|
|
|
|
|
const express = require('express');
|
|
|
const path = require('path');
|
|
|
const compression = require('compression');
|
|
|
const bodyParser = require('body-parser');
|
|
|
const cookieParser = require('cookie-parser');
|
|
|
const favicon = require('serve-favicon');
|
...
|
...
|
@@ -63,6 +64,7 @@ app.use(bodyParser.urlencoded({ |
|
|
extended: false
|
|
|
}));
|
|
|
app.use(cookieParser());
|
|
|
app.use(compression());
|
|
|
|
|
|
app.use(session({
|
|
|
name: 'yohobuy_session_cookie',
|
...
|
...
|
|