...
|
...
|
@@ -81,6 +81,7 @@ const logger = global.yoho.logger; |
|
|
|
|
|
// dispatcher
|
|
|
try {
|
|
|
const itemNameHandler = require('./doraemon/middleware/item-name-handler');
|
|
|
const mobileCheck = require('./doraemon/middleware/mobile-check');
|
|
|
const user = require('./doraemon/middleware/user');
|
|
|
const seo = require('./doraemon/middleware/seo');
|
...
|
...
|
@@ -89,6 +90,8 @@ try { |
|
|
const setPageInfo = require('./doraemon/middleware/set-pageinfo');
|
|
|
|
|
|
// YOHO 前置中间件
|
|
|
app.use(itemNameHandler);
|
|
|
|
|
|
app.use(mobileCheck());
|
|
|
app.use(setYohoData());
|
|
|
app.use(user());
|
...
|
...
|
|