A decorator function that sets up route metadata for an "OPTIONS" HTTP request method.

  • Parameters

    • Optionaloptions: RouteDecoratorOptions

      Configuration options for the route, including the path and any middlewares. If not provided, defaults to {path: '/', middlewares: []}.

    Returns MethodDecorator

    A method decorator that applies the route metadata to the target class.

    The decorator defines metadata such as path, middlewares, request method type, and method name for the specified class method. This metadata is stored using Reflect and can later be retrieved to create HTTP routing logic.