(path?: string)
| 70 | * @returns The decorator. |
| 71 | */ |
| 72 | export function Post(path?: string) { |
| 73 | return (target: any, propertyKey: string) => { |
| 74 | Reflect.defineMetadata('httpMethod', 'POST', target, propertyKey); |
| 75 | Reflect.defineMetadata('path', path, target, propertyKey); |
| 76 | }; |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Decorator specifying that a controller method handles PUT requests. |
no outgoing calls
no test coverage detected