web-router.js
666 Bytes
/**
* PC 页面路由处理
* @author: bikai<kai.bi@yoho.cn>
*/
const express = require('express');
const app = new express.Router();
const routes = './routes';
// middleware
const auth = require('./middleware/auth'); // 登录判断
// Module Controller
var conponSummer = require(`${routes}/coupon/summer-web`);
app.get('/coupon/summer/1', auth, conponSummer.first); // 夏日领券第一波
app.get('/coupon/summer/2', auth, conponSummer.second); // 夏日领券第二波
app.get('/coupon/summer/3', auth, conponSummer.third); // 夏日领券第三波
app.get('/coupon/summer/4', auth, conponSummer.fourth); // 夏日领券第四波
module.exports = app;