Function: Any()
Function: Any()
function Any(path, options?): MethodDecorator;
A method decorator for defining a route that responds to any HTTP method.
Parameters
path
The route path for the endpoint.
string
| string
[]
options?
Optional configuration for the route.
Returns
MethodDecorator
A method decorator configured for all HTTP methods.
Example
@Any('/resource')
handleAnyMethod() {
return 'Handled any HTTP method';
}