Revision 2980561e
Added by Daniel Lobato Garcia over 10 years ago
config/routes/test.rb | ||
---|---|---|
if Rails.env.test?
|
||
Foreman::Application.routes.draw do
|
||
namespace :api do
|
||
resources :testable, :only => :index
|
||
resources :testable, :only => :index do
|
||
get :raise_error, :on => :collection
|
||
end
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
fixes #3960 - wrap APIv2 errors in an "error" node
(cherry picked from commit 0f7d219a4a65cd795eecd05117b08511d9025de2)