...
|
...
|
@@ -24,7 +24,9 @@ global.yoho = { |
|
|
};
|
|
|
|
|
|
app.use(session({
|
|
|
secret: 'yoho!shop@manage'
|
|
|
secret: 'yoho!shop@manage',
|
|
|
resave: false,
|
|
|
saveUninitialized: true
|
|
|
}));
|
|
|
|
|
|
app.use(bodyParser.json());
|
...
|
...
|
@@ -55,5 +57,5 @@ try { |
|
|
|
|
|
|
|
|
app.listen(config.port, () => {
|
|
|
logger.log('yoho shop manage start !');
|
|
|
logger.info(`yoho shop manage start at ${config.port}`);
|
|
|
}); |
...
|
...
|
|