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

Function Get

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

Source from the content-addressed store, hash-verified

56 * @returns The decorator.
57 */
58export function Get(path?: string) {
59 return (target: any, propertyKey: string) => {
60 Reflect.defineMetadata('httpMethod', 'GET', target, propertyKey);
61 Reflect.defineMetadata('path', path, target, propertyKey);
62 };
63}
64
65/**
66 * Decorator specifying that a controller method handles POST requests.

Callers 15

AppControllerClass · 0.90
AppControllerClass · 0.90
AppControllerClass · 0.90
AppControllerClass · 0.90
FoobarClass · 0.90
FoobarControllerClass · 0.90
ApiControllerClass · 0.90
AuthControllerClass · 0.90
SubControllerClass · 0.90
AppControllerClass · 0.90
ProductControllerClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected