config/routes.rb in sportdb-admin-0.2.0 vs config/routes.rb in sportdb-admin-0.3.0
- old
+ new
@@ -9,19 +9,28 @@
get 'clubs', :to => 'teams#index_clubs', :as => 'clubs'
get 'national_teams', :to => 'teams#index_national_teams', :as => 'national_teams'
+ resources :sources
resources :countries
resources :regions
resources :rounds
resources :events
resources :teams
resources :games do
get 'past', :on => :collection
end
-
+ # NB: optional routes for market plugin/addon
+ if defined?( SportDb::Market )
+ resources :services
+ resources :event_quotes
+ resources :group_quotes
+ resources :quotes
+ end
+
+
#######################
# add shortcut routing (friendly urls)
#
# two letters (e.g. at,mx,us) assume country (fix!! az for Alkmaar in nl)
# - do NOT allow two letter keys