OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/config/routes.rb

29 lines
2.6 KiB

15 years ago
ActionController::Routing::Routes.draw do |map|
# Use rb/ as a URL 'namespace.' We're using a slightly different URL pattern
# From Redmine so namespacing avoids any further problems down the line
map.resource :rb, :only => :none do |rb|
14 years ago
rb.resource :updated_items, :only => :show, :controller => :rb_updated_items, :as => "updated_items/:project_id"
rb.resource :query, :only => :show, :controller => :rb_queries, :as => "queries/:project_id"
rb.resource :wiki, :only => [:show, :edit], :controller => :rb_wikis, :as => "wikis/:sprint_id"
rb.resource :statistics, :only => :show, :controller => :rb_statistics
rb.resource :calendars, :only => :show, :controller => :rb_calendars, :as => "calendars/:project_id"
rb.resource :burndown_chart, :only => :show, :controller => :rb_burndown_charts, :as => "projects/:project_id/burndown_charts/:sprint_id"
14 years ago
rb.resource :impediment, :except => :index, :controller => :rb_impediments, :as => "impediment/:id"
14 years ago
rb.resources :impediments, :only => :index, :controller => :rb_impediments, :as => "impediments/:sprint_id"
14 years ago
rb.resource :task, :except => :index, :controller => :rb_tasks, :as => "task/:id"
14 years ago
rb.resources :tasks, :only => :index, :controller => :rb_tasks, :as => "tasks/:story_id"
14 years ago
rb.resource :story, :except => :index, :controller => :rb_stories, :as => "story/:id"
14 years ago
rb.resources :stories, :only => :index, :controller => :rb_stories, :as => "stories/:project_id"
rb.resource :sprint, :only => [:show, :update], :controller => :rb_sprints, :as => "sprints/:sprint_id"
rb.resource :server_variables, :only => :show, :controller => :rb_server_variables, :as => "server_variables/:project_id"
rb.resource :taskboard, :only => :show, :controller => :rb_taskboards, :as => "taskboards/:sprint_id"
rb.resource :master_backlog, :only => :show, :controller => :rb_master_backlogs, :as => "master_backlogs/:project_id"
rb.resources :issue_boxes, :only => :show
end
map.connect 'projects/:project_id/versions/:id/edit', :controller => 'version_settings', :action => 'edit'
map.connect '/projects/:id/project_issue_statuses', :controller => 'projects', :action => 'project_issue_statuses'
14 years ago
end