router.js
390 Bytes
/**
* router of sub app service
* @author: yyq<yangqing.yang@yoho.cn>
* @date: 2019/11/19
*/
'use strict';
const router = require('express').Router(); //eslint-disable-line
const cRoot = './controllers';
// 杂志详情controller
const detail = require(`${cRoot}/detail`);
// middlware
// Your controller here
router.get(/^\/(\d+)\.html/, detail.cover);
module.exports = router;