router.js 781 Bytes
/**
 * 路由处理
 * @author: xuqi<qi.xu@yoho.cn>
 * @date: 2016/3/28
 */
const express = require('express');

const app = new express.Router();
const routes = './routes';

var index = require(`${routes}/index`);
var wxLottery = require(`${routes}/wx-lottery/index`);
var starClassroom = require(`${routes}/star-classroom`);

app.get('/', index.index); // 主页
app.get('/wx/lottery', wxLottery.index); // 微信抽奖活动

app.get('/star/classroom', starClassroom.index); // 星潮教室主页
app.get('/star/classroom/check-in', starClassroom.checkIn); // 星潮教室签到
app.get('/star/classroom/subject', starClassroom.subject); // 星潮教室星专题
app.get('/star/classroom/collocation', starClassroom.collocation); // 星潮教室星搭配

module.exports = app;