config/routes.rb in phcscriptcdnpro-78.4.0 vs config/routes.rb in phcscriptcdnpro-79.0.0

- old
+ new

@@ -1,26 +1,23 @@ Phcscriptcdnpro::Engine.routes.draw do - # API Routes - namespace :api, :path => "", :constraints => {:subdomain => "api"} do - namespace :v1 do - resources :mains, defaults: {format: 'json'} - resources :informations, defaults: {format: 'json'} - resources :versions, defaults: {format: 'json'} - end - end + # API Routes + namespace :api, :path => "", :constraints => {:subdomain => "api"} do + namespace :v1 do + resources :mains, defaults: {format: "json"} + resources :informations, defaults: {format: "json"} + resources :versions, defaults: {format: "json"} + end + end - # Script CDN Routes - namespace :script do - resources :listings, class_name: 'Phcscriptcdnpro::Script::Listing' do - resources :urls, class_name: 'Phcscriptcdnpro::Script::Url' - end - resources :authors, class_name: 'Phcscriptcdnpro::Script::Author' - resources :extensions, class_name: 'Phcscriptcdnpro::Script::Extension' - resources :versions, class_name: 'Phcscriptcdnpro::Script::Version' - resources :licences, class_name: 'Phcscriptcdnpro::Script::Licence' - end - - # PHCAccounts Routes - mount Phcaccountspro::Engine, :at => '/' + # Script CDN Routes + namespace :script do + resources :listings, class_name: "Phcscriptcdnpro::Script::Listing" do + resources :urls, class_name: "Phcscriptcdnpro::Script::Url" + end + resources :authors, class_name: "Phcscriptcdnpro::Script::Author" + resources :extensions, class_name: "Phcscriptcdnpro::Script::Extension" + resources :versions, class_name: "Phcscriptcdnpro::Script::Version" + resources :licences, class_name: "Phcscriptcdnpro::Script::Licence" + end end