RouteIO
RouteIO
acts as a mapper, tasked with converting data from the request into input for the controller, and the controller's result into the response. Each route, if it provides or returns data, is automatically assigned a RouteIO
where this data parsing should be performed. RouteIO
contains two optional methods (toResponse
, fromRequest
), depending on whether the route expects or/and returns data.
Last updated