root/extensions/agile_pm/routes.rb

Download in other formats: Raw | Text
Revisions
Dimitrij Denissenko
Dimitrij Denissenko
Sep 12 2009 * 10:58
(12 months ago)

Revision b1794537d634e7833190d162a0351bc60046c8fc

Merge AgilePM into the main distribution Fixed AgilePM permission for Backlog viewing

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#--
# Copyright (C) 2009 Dimitrij Denissenko
# Please read LICENSE document for more information.
#++
RetroEM::Routes.draw do |map|

  map.goals 'goals.:format', 
    :controller => 'goals', 
    :action => 'home',
    :path_prefix => '/projects/:project_id',
    :name_prefix => 'project_'
    
  map.resources :goals, 
    :path_prefix => '/projects/:project_id/milestones/:milestone_id',
    :name_prefix => 'project_milestone_'

  map.resources :sprints,
    :path_prefix => '/projects/:project_id/milestones/:milestone_id',
    :name_prefix => 'project_milestone_'

  map.stories 'stories.:format', 
    :controller => 'stories', 
    :action => 'home',
    :path_prefix => '/projects/:project_id',
    :name_prefix => 'project_'
    
  map.stories 'stories.:format', 
    :controller => 'stories', 
    :action => 'home',
    :path_prefix => '/projects/:project_id/milestones/:milestone_id',
    :name_prefix => 'project_milestone_'

  map.resources :stories, 
    :path_prefix => '/projects/:project_id/milestones/:milestone_id/sprints/:sprint_id',
    :name_prefix => 'project_milestone_sprint_',
    :collection => { :backlog => :get },
    :member => { :accept => :put, :complete => :put, :reopen => :put, :update_progress => :put, :revise_hours => :put, :comment => :post }

end