|
|
|
@ -2,66 +2,38 @@ OpenProject::Application.routes.draw do |
|
|
|
|
|
|
|
|
|
# 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 |
|
|
|
|
resource :rb, :only => :none do |
|
|
|
|
#scope "/rb" do |
|
|
|
|
scope "", as: "backlogs" do |
|
|
|
|
|
|
|
|
|
scope "queries/:project_id" do |
|
|
|
|
resource :query, |
|
|
|
|
:only => :show, |
|
|
|
|
:controller => :rb_queries |
|
|
|
|
end |
|
|
|
|
resources :issue_boxes, :controller => :issue_boxes, :only => [:show, :edit, :update] |
|
|
|
|
|
|
|
|
|
scope "wiki/:sprint_id" do |
|
|
|
|
resource :wiki, :only => [:show, :edit], :controller => :rb_wikis |
|
|
|
|
end |
|
|
|
|
scope "projects/:project_id", as: 'project' do |
|
|
|
|
|
|
|
|
|
scope "projects/:project_id/burndown_charts/:sprint_id" do |
|
|
|
|
resource :burndown_chart, :only => :show, :controller => :rb_burndown_charts |
|
|
|
|
end |
|
|
|
|
resources :backlogs, :controller => :rb_master_backlogs, :only => :index |
|
|
|
|
|
|
|
|
|
scope "impediment/:id" do |
|
|
|
|
resource :impediment, :except => :index, :controller => :rb_impediments |
|
|
|
|
end |
|
|
|
|
resource :server_variables, :controller => :rb_server_variables, :only => :show, :format => :js |
|
|
|
|
|
|
|
|
|
scope "impediments/:sprint_id" do |
|
|
|
|
resources :impediments, :only => :index, :controller => :rb_impediments |
|
|
|
|
end |
|
|
|
|
resources :sprints, :controller => :rb_sprints, :only => :update do |
|
|
|
|
|
|
|
|
|
scope "task/:id" do |
|
|
|
|
resource :task, :except => :index, :controller => :rb_tasks |
|
|
|
|
end |
|
|
|
|
resource :query, :controller => :rb_queries, :only => :show |
|
|
|
|
|
|
|
|
|
scope "tasks/:stroy_id" do |
|
|
|
|
resources :tasks, :only => :index, :controller => :rb_tasks |
|
|
|
|
end |
|
|
|
|
resource :taskboard, :controller => :rb_taskboards, :only => :show |
|
|
|
|
|
|
|
|
|
scope "story/:id" do |
|
|
|
|
resource :story, :except => :index, :controller => :rb_stories |
|
|
|
|
end |
|
|
|
|
resource :wiki, :controller => :rb_wikis, :only => [:show, :edit] |
|
|
|
|
|
|
|
|
|
scope "stories/:project_id" do |
|
|
|
|
resources :stories, :only => :index, :controller => :rb_stories |
|
|
|
|
end |
|
|
|
|
resource :burndown_chart, :controller => :rb_burndown_charts, :only => :show |
|
|
|
|
|
|
|
|
|
scope "sprints/:sprint_id" do |
|
|
|
|
resource :sprint, :only => [:show, :update], :controller => :rb_sprints |
|
|
|
|
end |
|
|
|
|
resources :impediments, :controller => :rb_impediments, :only => [:create, :update] |
|
|
|
|
|
|
|
|
|
scope "server_variables/:project_id" do |
|
|
|
|
resource :server_variables, :only => :show, :controller => :rb_server_variables |
|
|
|
|
end |
|
|
|
|
resources :tasks, :controller => :rb_tasks, :only => [:create, :update] |
|
|
|
|
|
|
|
|
|
scope "taskboard/:sprint_id" do |
|
|
|
|
resource :taskboard, :only => :show, :controller => :rb_taskboards |
|
|
|
|
end |
|
|
|
|
resources :stories, :controller => :rb_stories, :only => [:index, :create, :update] |
|
|
|
|
|
|
|
|
|
scope "master_backlogs/:project_id" do |
|
|
|
|
resource :master_backlog, :only => :show, :controller => :rb_master_backlogs |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
resources :issue_boxes, :only => [:show, :edit, :update] |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
get 'projects/:project_id/versions/:id/edit' => 'version_settings#edit' |
|
|
|
|
get 'projects/:id/project_issue_statuses' => 'projects#project_issue_statuses' |
|
|
|
|
get 'projects/:project_id/versions/:id/edit' => 'version_settings#edit' |
|
|
|
|
post 'projects/:id/project_issue_statuses' => 'projects#project_issue_statuses' |
|
|
|
|
post 'projects/:id/rebuild_positions' => 'projects#rebuild_positions' |
|
|
|
|
end |
|
|
|
|