index.js 563 B

12345678910111213141516171819202122232425
  1. 'use strict';
  2. const path = require('path');
  3. /**
  4. * [路由集合]
  5. * @author szjcomo
  6. * @createTime 2020-08-03
  7. * @param {[type]} app [description]
  8. * @return {[type]} [description]
  9. */
  10. module.exports = app => {
  11. /**
  12. * 首页控制器
  13. */
  14. require(path.join(app.baseDir, 'app', 'routers', 'home', 'home.js'))(app);
  15. /**
  16. * 后台管理接口
  17. */
  18. require(path.join(app.baseDir, 'app', 'routers', 'manager'))(app);
  19. /**
  20. * 微信通讯接口
  21. */
  22. require(path.join(app.baseDir, 'app', 'routers', 'wechat', 'index.js'))(app);
  23. };