router.js
413 Bytes
/**
* router of sub app service
* @author: xuan.chen@yoho.cn<xuan.chen@yoho.cn>
* @date: 2016/11/21
*/
'use strict';
const router = require('express').Router(); //eslint-disable-line
const cRoot = './controllers';
const mip = require('../../doraemon/middleware/mip');
const guang = require(`${cRoot}/guang`);
router.use(mip());
router.get('/guang/info/:id.html', guang.detail);
module.exports = router;