aboutsummaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index eeae969..1b68e1a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -18,6 +18,7 @@
ActionController::Routing::Routes.draw do |map|
+
map.namespace(:admin) do |admin|
admin.resources :participants
admin.resources :communities, :has_many => :participants
@@ -34,6 +35,8 @@ ActionController::Routing::Routes.draw do |map|
:only => [:index], :collection => { :fifo => [:get, :post] }
map.resources :configs, :path_prefix => '/sys', :name_prefix => 'sys_',
:only => [:index, :create]
+ map.resources :subparticipants, :path_prefix => '/sys', :name_prefix => 'sys_',
+ :only => [:index, :show, :create, :update, :destroy]
begin
Ressource.all.each do |r|