Function: Put()
Function: Put()
function Put(path, options?): MethodDecorator;
A method decorator for defining HTTP PUT routes.
Parameters
path
The route path for the PUT endpoint.
string
| string
[]
options?
Optional configuration for the route.
Returns
MethodDecorator
A method decorator configured for a PUT route.
Example
@Put('/update')
updateResource() {
return 'Resource updated';
}