router.js 727 Bytes
/**
 * router of sub app service
 * @author: xuan.chen@yoho.cn<xuan.chen@yoho.cn>
 * @date: 2016/11/21
 */

'use strict';

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

const chat = require(`${cRoot}/chat`);

const chatQa = require(`${cRoot}/chatQa`); // 问题搜索列表页

// Your controller here
router.get('/im/', chat.page);
router.get('/getOrders', chat.getOrders);
router.get('/userinfo', chat.userinfo);
router.get('/msghistory', chat.msghistory);

router.get('/chatQaList', chatQa.qaList); // 问题搜索列表页
router.get('/qaSearch', chatQa.qaSearch); // 问题搜索页
router.get('/qaDetail', chatQa.qaDetail); // 问题详情页

module.exports = router;