Blame view

doraemon/router.js 359 Bytes
陈峰 authored
1 2 3 4 5 6 7 8 9 10
/**
 * 通用路由处理
 * @author: xuqi<qi.xu@yoho.cn>
 * @date: 2016/4/28
 */

'use strict';

const router = require('express').Router(); // eslint-disable-line
TaoHuang authored
11 12 13
const alipayController = require('./middleware/alipay.controller');
const auth = require('./middleware/auth');
TaoHuang authored
14
router.post('/submit', auth, alipayController.submit);
陈峰 authored
15 16

module.exports = router;