|
@@ -9,6 +9,7 @@ import winston from 'winston';
|
|
|
import expressWinston from 'express-winston';
|
|
|
import path from 'path';
|
|
|
import history from 'connect-history-api-fallback';
|
|
|
+import chalk from 'chalk';
|
|
|
// import Statistic from './middlewares/statistic'
|
|
|
|
|
|
const app = express();
|
|
@@ -30,13 +31,13 @@ app.all('*', (req, res, next) => {
|
|
|
const MongoStore = connectMongo(session);
|
|
|
app.use(cookieParser());
|
|
|
app.use(session({
|
|
|
- name: config.session.name,
|
|
|
+ name: config.session.name,
|
|
|
secret: config.session.secret,
|
|
|
resave: true,
|
|
|
saveUninitialized: false,
|
|
|
cookie: config.session.cookie,
|
|
|
store: new MongoStore({
|
|
|
- url: config.url
|
|
|
+ url: config.url
|
|
|
})
|
|
|
}))
|
|
|
|