(procedures: T = {} as T)
| 139 | } |
| 140 | |
| 141 | constructor(procedures: T = {} as T) { |
| 142 | super() |
| 143 | |
| 144 | this._metadata = { |
| 145 | subRouters: {}, |
| 146 | config: {}, |
| 147 | procedures: {}, |
| 148 | registeredPaths: [], |
| 149 | } |
| 150 | |
| 151 | this.onError = (handler: ErrorHandler<any>) => { |
| 152 | this._errorHandler = handler |
| 153 | return this |
| 154 | } |
| 155 | |
| 156 | this.setupRoutes(procedures) |
| 157 | } |
| 158 | |
| 159 | registerSubrouterMiddleware() { |
| 160 | this.use(async (c, next) => { |
nothing calls this directly
no test coverage detected