(target: Class, propertyKey?: string)
| 29 | * @returns {(string|undefined)} - The HTTP method or undefined if none was defined. |
| 30 | */ |
| 31 | export 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. |