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

Function Post

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

Source from the content-addressed store, hash-verified

70 * @returns The decorator.
71 */
72export function Post(path?: string) {
73 return (target: any, propertyKey: string) => {
74 Reflect.defineMetadata('httpMethod', 'POST', target, propertyKey);
75 Reflect.defineMetadata('path', path, target, propertyKey);
76 };
77}
78
79/**
80 * Decorator specifying that a controller method handles PUT requests.

Callers 15

AppControllerClass · 0.90
FoobarClass · 0.90
FoobarControllerClass · 0.90
FoobarController2Class · 0.90
ApiControllerClass · 0.90
UserControllerClass · 0.90
SubController2Class · 0.90
SubSubControllerClass · 0.90
SubControllerClass · 0.90
MyControllerClass · 0.90
AppControllerClass · 0.90
AppControllerClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected