router.js
490 Bytes
/**
* router of sub app 3party-ad
* @author: htoooth<ht.anglenx@gmail.com>
* @date: 2016/11/08
*/
'use strict';
const router = require('express').Router(); // eslint-disable-line
const cRoot = './controllers';
const ads = require(`${cRoot}/ads`); // 第三方广告平台对接
const secretSwitch = require(`${cRoot}/secret-switch`);
// Your controller here
router.get('/ads', ads.jump);
router.get('/secret-switch', secretSwitch.index); // 设置cache
module.exports = router;