Function: Delete()
Function: Delete()
function Delete(path, options?): MethodDecorator;
A method decorator for defining HTTP DELETE routes.
Parameters
path
The route path for the DELETE endpoint.
string
| string
[]
options?
Optional configuration for the route.
Returns
MethodDecorator
A method decorator configured for a DELETE route.
Example
@Delete('/resource/:id')
deleteResource() {
return 'Resource deleted';
}