web-router.js
505 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); // 夏日领券第二波
module.exports = app;