router.js 524 Bytes
/**
 * router of sub app product
 * @author: weiqingting<qingting.wei@yoho.cn>
 * @date: 2016/05/06
 */
'use strict';

const express = require('express');
const router = express.Router(); // eslint-disable-line
const cRoot = './controllers';

const personalController = require(`${cRoot}/qrcode`);
const homeController = require(`${cRoot}/index`);

// 查看二维码
router.get('/QRcode/:id', personalController.QRcode);

// 收藏的商品或者品牌
router.get('/index', homeController.index);

module.exports = router;