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

Function getHttpMethod

packages/core/src/core/routes/utils.ts:31–33  ·  view source on GitHub ↗
(target: Class, propertyKey?: string)

Source from the content-addressed store, hash-verified

29 * @returns {(string|undefined)} - The HTTP method or undefined if none was defined.
30 */
31export function getHttpMethod(target: Class, propertyKey?: string): string|undefined {
32 return getMetadata('httpMethod', target, propertyKey);
33}
34
35/**
36 * Get the path of a controller method.

Calls 1

getMetadataFunction · 0.85

Tested by 2

testAssetFunction · 0.72
testAssetFunction · 0.72