router.js
399 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');
router.get('/gettoken', qiniu.getToken);
router.get('/share/getSignPackage', wechat.getSignPackage);
module.exports = router;