Authored by 毕凯

路由规则优惠

... ... @@ -9,11 +9,12 @@
const router = require('express').Router(); //eslint-disable-line
const cRoot = './controllers';
const rewrite = require('../../doraemon/middleware/rewrite');
const mip = require('../../doraemon/middleware/mip');
const guang = require(`${cRoot}/guang`);
router.use(mip);
router.get('/guang/info/:id.html', guang.detailIndex);
router.get(/^\/guang\/info\/(.*?)\.html/, rewrite.resolve, guang.detailIndex);
module.exports = router;
... ...