List bugs submited or commented on by user

This commit is contained in:
Kai Krueger 2010-03-15 00:10:41 +00:00
parent 81113f37b7
commit c9a3f91f69
6 changed files with 141 additions and 5 deletions

View file

@ -86,6 +86,8 @@ ActionController::Routing::Routes.draw do |map|
map.connect "api/#{API_VERSION}/bug/:id/close", :controller => 'map_bugs', :action => 'close_bug', :id => /\d+/
map.connect "api/#{API_VERSION}/bug/:id", :controller => 'map_bugs', :action => 'read', :id => /\d+/, :conditions => { :method => :get }
map.connect "api/#{API_VERSION}/bug/:id", :controller => 'map_bugs', :action => 'delete', :id => /\d+/, :conditions => { :method => :delete }
map.connect '/user/:display_name/bugs', :controller => 'map_bugs', :action => 'my_bugs'