##// END OF EJS Templates
Prettier url for changesets (#1443)....
Jean-Philippe Lang -
r1535:5051566e51a3
parent child
Show More
@@ -1,43 +1,44
1 ActionController::Routing::Routes.draw do |map|
1 ActionController::Routing::Routes.draw do |map|
2 # Add your own custom routes here.
2 # Add your own custom routes here.
3 # The priority is based upon order of creation: first created -> highest priority.
3 # The priority is based upon order of creation: first created -> highest priority.
4
4
5 # Here's a sample route:
5 # Here's a sample route:
6 # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
6 # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
7 # Keep in mind you can assign values other than :controller and :action
7 # Keep in mind you can assign values other than :controller and :action
8
8
9 map.home '', :controller => 'welcome'
9 map.home '', :controller => 'welcome'
10 map.signin 'login', :controller => 'account', :action => 'login'
10 map.signin 'login', :controller => 'account', :action => 'login'
11 map.signout 'logout', :controller => 'account', :action => 'logout'
11 map.signout 'logout', :controller => 'account', :action => 'logout'
12
12
13 map.connect 'wiki/:id/:page/:action', :controller => 'wiki', :page => nil
13 map.connect 'wiki/:id/:page/:action', :controller => 'wiki', :page => nil
14 map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow'
14 map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow'
15 map.connect 'help/:ctrl/:page', :controller => 'help'
15 map.connect 'help/:ctrl/:page', :controller => 'help'
16 #map.connect ':controller/:action/:id/:sort_key/:sort_order'
16 #map.connect ':controller/:action/:id/:sort_key/:sort_order'
17
17
18 map.connect 'issues/:issue_id/relations/:action/:id', :controller => 'issue_relations'
18 map.connect 'issues/:issue_id/relations/:action/:id', :controller => 'issue_relations'
19 map.connect 'projects/:project_id/issues/:action', :controller => 'issues'
19 map.connect 'projects/:project_id/issues/:action', :controller => 'issues'
20 map.connect 'projects/:project_id/news/:action', :controller => 'news'
20 map.connect 'projects/:project_id/news/:action', :controller => 'news'
21 map.connect 'projects/:project_id/documents/:action', :controller => 'documents'
21 map.connect 'projects/:project_id/documents/:action', :controller => 'documents'
22 map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards'
22 map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards'
23 map.connect 'projects/:project_id/timelog/:action/:id', :controller => 'timelog'
23 map.connect 'projects/:project_id/timelog/:action/:id', :controller => 'timelog'
24 map.connect 'boards/:board_id/topics/:action/:id', :controller => 'messages'
24 map.connect 'boards/:board_id/topics/:action/:id', :controller => 'messages'
25
25
26 map.with_options :controller => 'repositories' do |omap|
26 map.with_options :controller => 'repositories' do |omap|
27 omap.repositories_show 'repositories/browse/:id/*path', :action => 'browse'
27 omap.repositories_show 'repositories/browse/:id/*path', :action => 'browse'
28 omap.repositories_changes 'repositories/changes/:id/*path', :action => 'changes'
28 omap.repositories_changes 'repositories/changes/:id/*path', :action => 'changes'
29 omap.repositories_diff 'repositories/diff/:id/*path', :action => 'diff'
29 omap.repositories_diff 'repositories/diff/:id/*path', :action => 'diff'
30 omap.repositories_entry 'repositories/entry/:id/*path', :action => 'entry'
30 omap.repositories_entry 'repositories/entry/:id/*path', :action => 'entry'
31 omap.repositories_entry 'repositories/annotate/:id/*path', :action => 'annotate'
31 omap.repositories_entry 'repositories/annotate/:id/*path', :action => 'annotate'
32 omap.repositories_revision 'repositories/revision/:id/:rev', :action => 'revision'
32 end
33 end
33
34
34 map.connect 'attachments/:id', :controller => 'attachments', :action => 'show'
35 map.connect 'attachments/:id', :controller => 'attachments', :action => 'show'
35
36
36 # Allow downloading Web Service WSDL as a file with an extension
37 # Allow downloading Web Service WSDL as a file with an extension
37 # instead of a file named 'wsdl'
38 # instead of a file named 'wsdl'
38 map.connect ':controller/service.wsdl', :action => 'wsdl'
39 map.connect ':controller/service.wsdl', :action => 'wsdl'
39
40
40
41
41 # Install the default route as the lowest priority.
42 # Install the default route as the lowest priority.
42 map.connect ':controller/:action/:id'
43 map.connect ':controller/:action/:id'
43 end
44 end
General Comments 0
You need to be logged in to leave comments. Login now