router.js 851 Bytes
/**
 * api router
 * @author: chenfeng <feng.chen@yoho.cn>
 * @date: 29/06/2017
 */
const express = require('express');
const router = express.Router();  // eslint-disable-line
const qiniu = require('./controllers/qiniu');
const wechat = require('./controllers/wechat');
const prize = require('./controllers/prize');

// const excel = require('./controllers/excel');

router.get('/gettoken', qiniu.getToken);
router.get('/share/getSignPackage', wechat.getSignPackage);
router.get('/prize/checkPrize', prize.checkPrize);
router.post('/prize/getPrize', prize.getPrize);
router.post('/prize/updatePrize', prize.updatePrize);
router.post('/info/saveUserInfo', prize.saveUserInfo);

// router.get('/excel/xml', excel.excelToXml);
// router.get('/excel/sendMail', excel.sendMail);
// router.get('/excel/load', excel.getExcelData);

module.exports = router;