router.js 443 Bytes
/**
 * router of sub app coupon
 * @author: lixia.zhang<lixia.zhang@yoho.cn>
 * @date: 2016/05/31
 */

'use strict';

const router = require('express').Router(); // eslint-disable-line
const cRoot = './controllers';
const ads = require(`${cRoot}/ads`);
const check = require(`${cRoot}/check`);

// routers

router.get('/ads', ads.index);
router.get('/check', check.index);
router.post('/check/submit', check.submit);

module.exports = router;