annotation Athena::Routing::ParamConverter

Overview

Applies an ART::ParamConverterInterface to a given argument.

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

Fields

Example

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

Defined in:

annotations.cr