router.js 878 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); // 地址管理界面
router.get('/addressAct/:id', addressController.addressAct); // 地址管理界面
router.post('/saveAddress', addressController.saveAddress); // 新增或者保存地址
router.post('/delAddress', addressController.delAddress); // 新增或者保存地址
router.get('/locationList', addressController.locationList); // 异步获取三级地址数据

module.exports = router;