(path: string, handler: RouteHandler)
| 17 | private readonly routes: Route[] = []; |
| 18 | |
| 19 | get(path: string, handler: RouteHandler): void { |
| 20 | this.routes.push({ method: 'GET', path, handler }); |
| 21 | } |
| 22 | |
| 23 | post(path: string, handler: RouteHandler): void { |
| 24 | this.routes.push({ method: 'POST', path, handler }); |