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

Function getPath

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

Source from the content-addressed store, hash-verified

41 * @returns {(string|undefined)} - The path or undefined if none was defined.
42 */
43export function getPath(target: Class, propertyKey?: string): string|undefined {
44 return getMetadata('path', target, propertyKey);
45}
46
47/**
48 * Join several HTTP request paths together.

Calls 1

getMetadataFunction · 0.85

Tested by 2

testAssetFunction · 0.72
testAssetFunction · 0.72