(path?: string)
| 56 | * @returns The decorator. |
| 57 | */ |
| 58 | export 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. |
no outgoing calls
no test coverage detected