MCPcopy Create free account
hub / github.com/MemTensor/MemOS / writeMethodNotAllowed

Function writeMethodNotAllowed

apps/memos-local-plugin/server/middleware/io.ts:58–62  ·  view source on GitHub ↗
(res: ServerResponse, method: string)

Source from the content-addressed store, hash-verified

56}
57
58export function writeMethodNotAllowed(res: ServerResponse, method: string): void {
59 writeJson(res, 405, {
60 error: { code: "method_not_allowed", message: `${method} not allowed here` },
61 });
62}

Callers 1

dispatchFunction · 0.85

Calls 1

writeJsonFunction · 0.85

Tested by

no test coverage detected