MCPcopy
hub / github.com/FoalTS/foal / Patch

Function Patch

packages/core/src/core/http/http-methods.ts:100–105  ·  view source on GitHub ↗
(path?: string)

Source from the content-addressed store, hash-verified

98 * @returns The decorator.
99 */
100export function Patch(path?: string) {
101 return (target: any, propertyKey: string) => {
102 Reflect.defineMetadata('httpMethod', 'PATCH', target, propertyKey);
103 Reflect.defineMetadata('path', path, target, propertyKey);
104 };
105}
106
107/**
108 * Decorator specifying that a controller method handles DELETE requests.

Callers 9

FoobarClass · 0.90
MyControllerClass · 0.90
ControllerClass · 0.90
ControllerClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected