...
|
...
|
@@ -99,6 +99,7 @@ app.use((req, res, next) => { |
|
|
// dispatcher
|
|
|
try {
|
|
|
const user = require('./doraemon/middleware/user');
|
|
|
const reqParamsFilter = require('./doraemon/middleware/req-params-filter');
|
|
|
const subDomain = require('./doraemon/middleware/sub-domain');
|
|
|
const itemNameHandler = require('./doraemon/middleware/item-name-handler');
|
|
|
const setYohoData = require('./doraemon/middleware/set-yoho-data');
|
...
|
...
|
@@ -110,6 +111,7 @@ try { |
|
|
const pageCache = require('./doraemon/middleware/page-cache');
|
|
|
|
|
|
// YOHO 前置中间件
|
|
|
app.use(reqParamsFilter());
|
|
|
app.use(subDomain());
|
|
|
app.use(itemNameHandler);
|
|
|
app.use(setYohoData());
|
...
|
...
|
|