Revision b2b47290
Added by Petr Chalupa almost 12 years ago
- ID b2b4729059ff89327d7cd86d2e47664a2ce57c46
config/routes/api/v2.rb | ||
---|---|---|
|
||
Rails.application.routes.draw do |map|
|
||
|
||
# namespace :api, :defaults => {:format => 'json'} do
|
||
# scope :module => :v2, :constraints => ApiConstraints.new(:version => 2, :default => false) do
|
||
# resources :bookmarks, :except => [:new, :edit]
|
||
# end
|
||
# end
|
||
#namespace :api, :defaults => {:format => 'json'} do
|
||
# scope :module => :v2, :constraints => ApiConstraints.new(:version => 2) do
|
||
# resources :bookmarks
|
||
# end
|
||
#end
|
||
|
||
end
|
Also available in: Unified diff
api v1 - render errors with rabl
better detection of permission failure in model
fix ApiConstraints
catch bad routes in api and return json