Optional
options: RouteDecoratorOptionsOptional configuration for the DELETE route.
path
specifies the endpoint for the route. Defaults to '/'.middlewares
is an array of middleware functions to be applied to the route. Defaults to an empty array.A decorator function that associates metadata about the DELETE route
with the method it decorates, storing the configuration under the routes
metadata key.
A method decorator for defining a DELETE route in a web application.
This decorator associates a method with an HTTP DELETE request handled by the specified path. It uses optional parameters for customizing the route, such as the path and middleware functions. The decorated method can then be registered as a DELETE handler in the routing system.