You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 2 година
1234567891011121314151617181920212223242526
  1. /*
  2. * @Description: 汇总模块子路由
  3. * @Author: hai-27
  4. * @Date: 2020-04-07 22:51:48
  5. * @LastEditors: hai-27
  6. * @LastEditTime: 2020-04-07 22:57:35
  7. */
  8. const Router = require('koa-router');
  9. let Routers = new Router();
  10. const userRouter = require('./router/userRouter');
  11. const resourcesRouter = require('./router/resourcesRouter');
  12. const productRouter = require('./router/productRouter');
  13. const shoppingCartRouter = require('./router/shoppingCartRouter');
  14. const orderRouter = require('./router/orderRouter');
  15. const collectRouter = require('./router/collectRouter');
  16. Routers.use(userRouter.routes());
  17. Routers.use(resourcesRouter.routes());
  18. Routers.use(productRouter.routes());
  19. Routers.use(shoppingCartRouter.routes());
  20. Routers.use(orderRouter.routes());
  21. Routers.use(collectRouter.routes());
  22. module.exports = Routers;