-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mount of another Grape API on a path doesn't work #60
Labels
Comments
@mbleigh this is done, right? |
The mounting works, but the RHS doesn't. So mounting on "/users" has no effect. |
Fixing this looks complicated. Do we have to alter the paths of the mounted API? Here's a spec for this failure: it 'mounts on a path' do
subject.namespace :cool do
app = Class.new(Grape::API)
app.get '/awesome' do
"sauce"
end
mount app => '/mounted'
end
get "/mounted/cool/awesome"
last_response.status.should == 200
last_response.body.should == "sauce"
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: