annotation Athena::Routing::Annotations::ParamConverter

Overview

Applies an ART::ParamConverterInterface to a given argument.

See ART::ParamConverterInterface for more information on defining a param converter.

Fields

Example

@[ARTA::Get(path: "/multiply/:num")]
@[ARTA::ParamConverter("num", converter: MultiplyConverter)]
def multiply(num : Int32) : Int32
  num
end

Defined in:

annotations.cr