You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the codebase of an app I work on we do: APIRoot.call(env) where APIRoot is the endpoint in which everything is mounted. However, you can do this on every parent endpoint.
in our case
# config/routes.rb
RailsApp::Application.routes.draw do
mount APIRoot => "/api"
end
# app/api/api_root.rb
class APIRoot < Grape::API
mount OtherEndpoint
...
end
API SDL
interface
feature is required for method calling cross API class. The discuss was posted Grape Google Group. The result may be:Now the call can by the below, but
env
is not easy constructed :-(The text was updated successfully, but these errors were encountered: