MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / options

Method options

src/api/APIRouter.ts:61–63  ·  view source on GitHub ↗
(pattern: string, handler: RouteHandler)

Source from the content-addressed store, hash-verified

59 }
60
61 options(pattern: string, handler: RouteHandler): void {
62 this.register("OPTIONS", pattern, handler);
63 }
64
65 async route(req: HTTPRequestLike, res: HTTPResponseLike): Promise<boolean> {
66 const pathname = parseRequestUrl(req).pathname;

Callers

nothing calls this directly

Calls 1

registerMethod · 0.95

Tested by

no test coverage detected