router.js
526 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 addressController = require(`${cRoot}/address`);
// 查看二维码
router.get('/QRcode/:id', personalController.QRcode);
router.get('/address', addressController.address); // 地址管理界面
module.exports = router;