* Add a PUT request handler with middleware support * * @param url * @param args * @example * app.put( * "/api/v1/health", * myHandler, * async (req: AxeRequest, res: AxeResponse) => { * res.json({}); * } * );
(url: string, ...args: GeneralFunction[])
| 112 | * ); |
| 113 | */ |
| 114 | public put(url: string, ...args: GeneralFunction[]) { |
| 115 | const { handler, middlewares } = resolveMiddlewares(args); |
| 116 | URLService.addHandler("PUT", url, handler, middlewares); |
| 117 | this.docs.pushCustom(HttpMethods.PUT, url); |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Add a PATCH request handler with middleware support |
no test coverage detected