Skip to content

Mount of another Grape API on a path doesn't work #60

Closed
@mbleigh

Description

@mbleigh

A Grape API should be able to mount other Rack applications inside of it. In addition, it should be able to mount another API and that API will inherit the other API's settings.

class UsersAPI < Grape::API
  get '/:id' do
    # ...
  end
end

class MyAPI
  version :v1
  mount UsersAPI => '/users'
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