Closed
Description
Is there any way to access the mount configuration inside a route resolver? I need to customize the response, and this does not work:
# configuration works here:
route_param :pipeline_id, type: (configuration[:integer_ids] ? Integer : String) do
get "/" do
# This throws a NoMethodError saying `configuration` does not exist on class
present :data, current_pipeline, with: API::Entities::Pipeline, integer_ids: configuration[:integer_ids]
end