Function: Fallback()
Function: Fallback()
function Fallback(options?): MethodDecorator;
A method decorator for defining a fallback HTTP GET route.
Parameters
options?
Optional configuration for the route.
Returns
MethodDecorator
A method decorator configured for a fallback GET route.
Example
@Fallback()
handleFallback() {
return 'Fallback route';
}