router.js 346 B

12345678910111213141516171819
  1. 'use strict';
  2. const path = require('path');
  3. module.exports = {
  4. /**
  5. * Load app/router.js
  6. * @function EggLoader#loadRouter
  7. * @since 1.0.0
  8. */
  9. loadRouter() {
  10. this.timing.start('Load Router');
  11. // 加载 router.js
  12. this.loadFile(path.join(this.options.baseDir, 'app/router'));
  13. this.timing.end('Load Router');
  14. },
  15. };