web-router.js 424 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); // 夏日领券第一波

module.exports = app;