diff options
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/config/routes.rb b/config/routes.rb index 15953076f..66f0182be 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -96,15 +96,6 @@ ActionController::Routing::Routes.draw do |map| map.connect 'my/order_blocks', :controller => 'my', :action => 'order_blocks', :conditions => {:method => :post} - map.connect 'projects/:id/members/new', :controller => 'members', - :action => 'new', :conditions => { :method => :post } - map.connect 'members/edit/:id', :controller => 'members', - :action => 'edit', :id => /\d+/, :conditions => { :method => :post } - map.connect 'members/destroy/:id', :controller => 'members', - :action => 'destroy', :id => /\d+/, :conditions => { :method => :post } - map.connect 'members/autocomplete_for_member/:id', :controller => 'members', - :action => 'autocomplete_for_member', :conditions => { :method => :post } - map.with_options :controller => 'users' do |users| users.user_membership 'users/:id/memberships/:membership_id', :action => 'edit_membership', @@ -178,6 +169,9 @@ ActionController::Routing::Routes.draw do |map| project.resources :boards project.resources :repositories, :shallow => true, :except => [:index, :show], :member => {:committers => [:get, :post]} + project.resources :memberships, :shallow => true, :controller => 'members', + :only => [:create, :update, :destroy], + :collection => {:autocomplete => :get} project.wiki_start_page 'wiki', :controller => 'wiki', :action => 'show', :conditions => {:method => :get} project.wiki_index 'wiki/index', :controller => 'wiki', :action => 'index', :conditions => {:method => :get} |