A decorator factory for defining HTTP POST route handlers in a class-based routing system. This decorator associates a method in a class with a specific POST endpoint, including its path, any middleware functions, and other route metadata.

  • Parameters

    • Optionaloptions: RouteDecoratorOptions

      An optional object specifying additional configurations for the route. It includes the path for the route and an array of middleware functions.

    Returns MethodDecorator

    A method decorator function that adds the POST route metadata to the target class.