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

Method patch

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

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

Source from the content-addressed store, hash-verified

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

Callers 3

08-cache.spec.jsFile · 0.80
02-hooks.spec.jsFile · 0.80
patchFunction · 0.80

Calls 3

resolveMiddlewaresFunction · 0.90
addHandlerMethod · 0.80
pushCustomMethod · 0.80

Tested by

no test coverage detected