router.js
489 Bytes
/**
* router of sub app service
* @author: liqi <qi.li@yoho.cn>
* @date: 2016/11/04
*/
'use strict';
const router = require('express').Router(); // eslint-disable-line
const auth = require(`${global.middleware}/auth`);
const cRoot = './controllers';
// 在线客服controller
const client = require(`${cRoot}/client`);
// 在线客服
router.get('/client', auth, client.index); // 在线客服
router.get('/domains', auth, client.domains); // 域名配置
module.exports = router;