README.md in lookout-rack-utils-2.0.0 vs README.md in lookout-rack-utils-3.0.0
- old
+ new
@@ -74,12 +74,12 @@
```ruby
require 'lookout/rack/utils/subroute'
include Lookout::Rack::Utils::Subroute
# Return the status of a request to /api/public/v1/original_route and throw
- # away the response body
+ # away the headers and response body
get '/status' do
- sub_status, sub_data = subroute!('/api/public/v1/original_route')
+ sub_status, sub_headers, sub_data = subroute!('/api/public/v1/original_route')
halt sub_status
end
# Assuming we have a method 'current_user', make /api/public/v1/user route