router.js
511 Bytes
/**
* router of sub app cart
* @author: xuan.chen@yoho.cn<xuan.chen@yoho.cn>
* @date: 2016/09/26
*/
'use strict';
const router = require('express').Router(); //eslint-disable-line
const cRoot = './controllers';
const authMW = require('../../doraemon/middleware/auth');
const seckill = require(cRoot + '/seckill');
// Your controller here
router.get('/seckill/', seckill.ensure);
router.post('/seckill/compute', seckill.compute);
router.post('/seckill/submit', seckill.submit);
module.exports = router;