router.js
405 Bytes
/**
* 通用路由处理
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2016/4/28
*/
'use strict';
const router = require('express').Router(); // eslint-disable-line
const cRoot = './controllers';
const uploadApi = require(`${cRoot}/upload`);
const common = require(`${cRoot}/common`);
router.post('/uploadImg', uploadApi.uploadImg);
router.get('/getBanner', common.getBanner);
module.exports = router;