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

Method put

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

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

Source from the content-addressed store, hash-verified

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

Callers 1

putFunction · 0.80

Calls 3

resolveMiddlewaresFunction · 0.90
addHandlerMethod · 0.80
pushCustomMethod · 0.80

Tested by

no test coverage detected