| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 | | 'use strict'; |  |   |  | const path = require('path'); |  |   |  |   |  | module.exports = { |  |   |  |   /** |  |    * Load app/router.js |  |    * @method EggLoader#loadRouter |  |    * @param {Object} opt - LoaderOptions |  |    * @since 1.0.0 |  |    */ |  |   loadRouter() { |  |     this.timing.start('Load Router'); |  |     // 加载 router.js |  |     this.loadFile(path.join(this.options.baseDir, 'app/router')); |  |     this.timing.end('Load Router'); |  |   }, |  | }; | 
 |