* Add a DELETE request handler with middleware support * * @param url * @param args * @example * app.delete( * "/api/v1/health", * myHandler, * async (req: AxeRequest, res: AxeResponse) => { * res.json({}); * } * );
(url: string, ...args: GeneralFunction[])
| 152 | * ); |
| 153 | */ |
| 154 | public delete(url: string, ...args: GeneralFunction[]) { |
| 155 | const { handler, middlewares } = resolveMiddlewares(args); |
| 156 | URLService.addHandler("DELETE", url, handler, middlewares); |
| 157 | this.docs.pushCustom(HttpMethods.DELETE, url); |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | export default App; |
no test coverage detected