Authored by ccbikai(👎🏻🍜)

路由分发整理

... ... @@ -18,7 +18,7 @@ const hotfix = require(`${cRoot}/hotfix`);
// routers
router.post('/upload/image', multipartMiddleware, uploadApi.uploadImg);
router.post('/api/upload/image', multipartMiddleware, uploadApi.uploadImg);
router.post('/hf/v1', hotfix.v1);
module.exports = router;
... ...
... ... @@ -11,9 +11,9 @@ module.exports = app => {
// 四个频道页,频道选择页面 /boys,/girls,/,/kids,/lifestyle 等页面,就直接占用路由了
app.use(require('./apps/channel'));
app.use(require('./apps/passport'));
app.use(require('./apps/api')); // 一些只返回json的通用api
// 业务模块
app.use('/api', require('./apps/api')); // 各模块公有 API
app.use('/product', require('./apps/product'));
app.use('/guang', require('./apps/guang'));
app.use('/activity', require('./apps/activity'));
... ... @@ -21,7 +21,4 @@ module.exports = app => {
// 分期付款
app.use('/home', require('./apps/home'));
// 一些只返回json的通用api
app.use('/', require('./apps/api'));
};
... ...