Authored by 姜枫

fix when one route mulit path

... ... @@ -21,6 +21,11 @@ module.exports = () => {
function onRender() {
let route = req.route ? req.route.path : '';
let appPath = req.app.mountpath;
if (_.isArray(route) && route.length > 0) {
route = route[0];
}
let key = urlJoin(appPath, route.toString()); // route may be a regexp
req.app.set('etag', false);
... ...