config/routes.rb in phcscriptcdnpro-1.9.10 vs config/routes.rb in phcscriptcdnpro-1.9.11
- old
+ new
@@ -17,15 +17,13 @@
resources :informations
end
# Application API
- namespace :api do
+ namespace :api, :path => "", :constraints => {:subdomain => "api"} do
# Routes for API
- resources :cdnlists, defaults: {format: 'json'} do
- resources :cdnlistings
- end
+ resources :mains, defaults: {format: 'json'}
end
end