router.js
538 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 favoriteController = require(`${cRoot}/favorite`);
// 查看二维码
router.get('/QRcode/:id', personalController.QRcode);
// 收藏的商品或者品牌
router.get('/favorite', favoriteController.index);
module.exports = router;