router.js 472 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`);
const magazine = require(`${cRoot}/index`);

// middlware

// Your controller here
router.get(/^\/(\d+)\.html/, detail.cover);
router.get('/index', magazine.index);


module.exports = router;