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.

routes.rb 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ActionController::Routing::Routes.draw do |map|
  2. # Add your own custom routes here.
  3. # The priority is based upon order of creation: first created -> highest priority.
  4. # Here's a sample route:
  5. # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  6. # Keep in mind you can assign values other than :controller and :action
  7. map.home '', :controller => 'welcome'
  8. map.signin 'login', :controller => 'account', :action => 'login'
  9. map.signout 'logout', :controller => 'account', :action => 'logout'
  10. map.connect 'wiki/:id/:page/:action', :controller => 'wiki', :page => nil
  11. map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow'
  12. map.connect 'help/:ctrl/:page', :controller => 'help'
  13. #map.connect ':controller/:action/:id/:sort_key/:sort_order'
  14. map.connect 'issues/:issue_id/relations/:action/:id', :controller => 'issue_relations'
  15. map.connect 'projects/:project_id/issues/:action', :controller => 'issues'
  16. map.connect 'projects/:project_id/news/:action', :controller => 'news'
  17. map.connect 'projects/:project_id/documents/:action', :controller => 'documents'
  18. map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards'
  19. map.connect 'boards/:board_id/topics/:action/:id', :controller => 'messages'
  20. map.with_options :controller => 'repositories' do |omap|
  21. omap.repositories_show 'repositories/browse/:id/*path', :action => 'browse'
  22. omap.repositories_changes 'repositories/changes/:id/*path', :action => 'changes'
  23. omap.repositories_diff 'repositories/diff/:id/*path', :action => 'diff'
  24. omap.repositories_entry 'repositories/entry/:id/*path', :action => 'entry'
  25. omap.repositories_entry 'repositories/annotate/:id/*path', :action => 'annotate'
  26. end
  27. # Allow downloading Web Service WSDL as a file with an extension
  28. # instead of a file named 'wsdl'
  29. map.connect ':controller/service.wsdl', :action => 'wsdl'
  30. # Install the default route as the lowest priority.
  31. map.connect ':controller/:action/:id'
  32. end