config/routes.rb in phcscriptcdn-48.0.0 vs config/routes.rb in phcscriptcdn-49.0.0
- old
+ new
@@ -1,30 +1,27 @@
Phcscriptcdn::Engine.routes.draw do
- # Frontend Routes
- namespace :frontend do
- resources :listings
- end
+ # Mount Accounts Engine
+ mount Phcaccounts::Engine, :at => '/'
- # Script CDN Listing System
- namespace :script do
- # Main Script Module
- resources :listings, class_name: 'Phcscriptcdn::Script::Listing' do
- resources :urls, class_name: 'Phcscriptcdn::Script::Url'
+ # Application Scripts
+ namespace :script do
+ # Main Script Module
+ resources :listings, class_name: 'Phcscriptcdn::Script::Listing' do
+ resources :urls, class_name: 'Phcscriptcdn::Script::Url'
+ end
+ resources :authors, class_name: 'Phcscriptcdn::Script::Author'
+ resources :extensions, class_name: 'Phcscriptcdn::Script::Extension'
+ resources :versions, class_name: 'Phcscriptcdn::Script::Version'
+ resources :licences, class_name: 'Phcscriptcdn::Script::Licence'
end
- resources :authors, class_name: 'Phcscriptcdn::Script::Author'
- resources :extensions, class_name: 'Phcscriptcdn::Script::Extension'
- resources :versions, class_name: 'Phcscriptcdn::Script::Version'
- resources :licences, class_name: 'Phcscriptcdn::Script::Licence'
- end
- # Application API
- namespace :api, :path => "", :constraints => {:subdomain => "api"} do
- namespace :v1 do
- # Routes for API
- resources :mains, defaults: {format: 'json'}
- resources :informations, defaults: {format: 'json'}
- resources :versions, defaults: {format: 'json'}
+ # Application API
+ 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
- end
end