...
|
...
|
@@ -99,6 +99,7 @@ try { |
|
|
const errorHanlder = require('./doraemon/middleware/error-handler');
|
|
|
const setPageInfo = require('./doraemon/middleware/set-pageinfo');
|
|
|
const devtools = require('./doraemon/middleware/devtools');
|
|
|
const layoutTools = require('./doraemon/middleware/layout-tools');
|
|
|
const seo = require('./doraemon/middleware/seo');
|
|
|
const pageCache = require('./doraemon/middleware/page-cache');
|
|
|
|
...
|
...
|
@@ -114,6 +115,8 @@ try { |
|
|
app.use(devtools());
|
|
|
}
|
|
|
|
|
|
app.use(layoutTools());
|
|
|
|
|
|
app.use(pageCache());
|
|
|
require('./dispatch')(app);
|
|
|
app.all('*', errorHanlder.notFound()); // 404
|
...
|
...
|
|