config/routes.rb in phcscriptcdnpro-1.9.6 vs config/routes.rb in phcscriptcdnpro-1.9.7
- old
+ new
@@ -15,7 +15,17 @@
# Script Information
resources :versions
resources :informations
end
+
+ # Application API
+ namespace :api do
+
+ # Routes for API
+ resources :cdnlists, defaults: {format: 'json'} do
+ resources :cdnlistings
+ end
+
+ end
end