()
| 373 | } |
| 374 | |
| 375 | private rebuildRouteMap() { |
| 376 | const map: Record<string, string> = Object.create(null); |
| 377 | for (const layer of this.router.stack) { |
| 378 | if (layer.name && typeof layer.path === 'string') { |
| 379 | map[layer.name] = layer.path; |
| 380 | } |
| 381 | } |
| 382 | this._routeMap = map; |
| 383 | } |
| 384 | |
| 385 | Handler = Handler; |
| 386 | ConnectionHandler = ConnectionHandler; |