diff options
author | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2011-03-03 12:33:09 +0100 |
---|---|---|
committer | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2011-03-03 12:33:09 +0100 |
commit | 5b3773e48005308d5f2666903f23a04213e0bad8 (patch) | |
tree | 498cde4b457e17010fc70f896bf48d5d14a8a853 /config | |
parent | 1e15b17e0720a8c6196afe41db5ea3c5bcd0592c (diff) | |
download | ecs2-5b3773e48005308d5f2666903f23a04213e0bad8.tar.gz ecs2-5b3773e48005308d5f2666903f23a04213e0bad8.zip |
System resources moved to sys namespace.
The system resources /events, /memberships and /auths are now called
through the sys namesapce:
/sys/events
/sys/memberships
/sys/auths
The old syntax is now tagged as deprecated. All participants are
solicited to change their calling.
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 3cf3856..c80984f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -28,6 +28,10 @@ ActionController::Routing::Routes.draw do |map| map.resources :memberships, :only => [:index] map.resources :events, :only => [:index], :collection => { :fifo => [:get, :post] } + map.resources :memberships, :path_prefix => '/sys', :name_prefix => 'sys_', + :only => [:index] + map.resources :events, :path_prefix => '/sys', :name_prefix => 'sys_', + :only => [:index], :collection => { :fifo => [:get, :post] } begin Ressource.all.each do |r| |