Merge pull request #11 from jaugustin/fix-routes

Copy routes.rb to config dir and update their format to work with newer versions of Rails/Redmine
This commit is contained in:
Brad Beattie 2012-05-21 08:03:58 -07:00
commit c44ff1d0b8

11
config/routes.rb Normal file
View File

@ -0,0 +1,11 @@
ActionController::Routing::Routes.draw do |map|
map.connect 'projects/:project_id/issues/old', :controller => 'graphs', :action => 'old_issues'
map.connect 'issues/old', :controller => 'graphs', :action => 'old_issues'
map.connect ':project_id/issue_age_graph', :controller => 'graphs', :action => 'issue_age_graph'
map.connect 'projects/:project_id/issues/growth', :controller => 'graphs', :action => 'issue_growth'
map.connect 'issues/growth', :controller => 'graphs', :action => 'issue_growth'
map.connect ':project_id/issue_growth_graph', :controller => 'graphs', :action => 'issue_growth_graph'
map.connect 'graphs/recent-status-changes', :controller=>"graphs", :action=>"recent_status_changes_graph"
map.connect 'graphs/recent-assigned-to-changes', :controller=>"graphs", :action=>"recent_assigned_to_changes_graph"
map.connect 'graphs/target-version/:id', :controller=>"graphs", :action=>"target_version_graph"
end