Skip to content

Access mount configuration inside a resource #1883

Closed
@cberkom

Description

@cberkom

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions