* Add a PATCH request handler with middleware support * * @param url * @param args * @example * app.patch( * "/api/v1/health", * myHandler, * async (req: AxeRequest, res: AxeResponse) => { * res.json({}); * } * );
(url: string, ...args: GeneralFunction[])
| 132 | * ); |
| 133 | */ |
| 134 | public patch(url: string, ...args: GeneralFunction[]) { |
| 135 | const { handler, middlewares } = resolveMiddlewares(args); |
| 136 | URLService.addHandler("PATCH", url, handler, middlewares); |
| 137 | this.docs.pushCustom(HttpMethods.PATCH, url); |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * Add a DELETE request handler with middleware support |
no test coverage detected