MCPcopy Create free account
hub / github.com/axe-api/axe-api / delete

Method delete

packages/axe-api/src/Services/App.ts:154–158  ·  view source on GitHub ↗

* 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[])

Source from the content-addressed store, hash-verified

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
161export default App;

Callers 6

ActionPhase.tsFile · 0.45
ActionPhase.tsFile · 0.45
deleteCacheTagMembersFunction · 0.45
clearCacheTagsFunction · 0.45
deleteItFunction · 0.45

Calls 3

resolveMiddlewaresFunction · 0.90
addHandlerMethod · 0.80
pushCustomMethod · 0.80

Tested by

no test coverage detected