annotation Athena::Routing::ParamConverter
Overview
Controls how params are converted.
Fields
- param :
String
- The param that should go through the conversion. - type :
T
- The type the param should be converted to. - converter :
Athena::Routing::Converters
- What converter to use for the conversion. Can beConverters::RequestBody
,Converters::Exists
,Converters::FormData
, or a custom defined converter.
Example
@[Athena::Routing::ParamConverter(param: "user", type: User, converter: Exists)]