##// END OF EJS Templates
route: code layout clean up workflows route...
route: code layout clean up workflows route git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8412 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r8292:02c7772cd01e
r8292:02c7772cd01e
Show More
routes.rb
355 lines | 20.1 KiB | text/x-ruby | RubyLexer
Jean-Philippe Lang
Initial commit...
r2 ActionController::Routing::Routes.draw do |map|
# Add your own custom routes here.
# The priority is based upon order of creation: first created -> highest priority.
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Jean-Philippe Lang
Initial commit...
r2 # Here's a sample route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042 map.home '', :controller => 'welcome', :conditions => {:method => :get}
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Toshi MARUYAMA
route: code layout clean up account route...
r8244 map.signin 'login', :controller => 'account', :action => 'login',
:conditions => {:method => [:get, :post]}
map.signout 'logout', :controller => 'account', :action => 'logout',
:conditions => {:method => :get}
map.connect 'account/register', :controller => 'account', :action => 'register',
:conditions => {:method => [:get, :post]}
map.connect 'account/lost_password', :controller => 'account', :action => 'lost_password',
:conditions => {:method => [:get, :post]}
map.connect 'account/activate', :controller => 'account', :action => 'activate',
:conditions => {:method => :get}
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Jean-Philippe Lang
Native eol property set on config/*...
r761 map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow'
Eric Davis
Refactor: extract TimelogController#create from TimelogController#edit...
r4130
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042 map.connect '/time_entries/destroy',
:controller => 'timelog', :action => 'destroy', :conditions => { :method => :delete }
Toshi MARUYAMA
add bulk edit and bulk update actions for time entries (#7996)....
r5193 map.time_entries_context_menu '/time_entries/context_menu',
:controller => 'context_menus', :action => 'time_entries'
Jean-Philippe Lang
Routes cleanup....
r7899
Jean-Philippe Lang
Routes cleanup....
r7908 map.resources :time_entries, :controller => 'timelog', :collection => {:report => :get, :bulk_edit => :get, :bulk_update => :post}
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 map.connect 'projects/:id/wiki', :controller => 'wikis', :action => 'edit', :conditions => {:method => :post}
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042 map.connect 'projects/:id/wiki/destroy', :controller => 'wikis', :action => 'destroy', :conditions => {:method => [:get, :post]}
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 map.with_options :controller => 'messages' do |messages_routes|
messages_routes.with_options :conditions => {:method => :get} do |messages_views|
messages_views.connect 'boards/:board_id/topics/new', :action => 'new'
messages_views.connect 'boards/:board_id/topics/:id', :action => 'show'
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042 messages_views.connect 'boards/:board_id/topics/quote/:id', :action => 'quote'
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 messages_views.connect 'boards/:board_id/topics/:id/edit', :action => 'edit'
end
messages_routes.with_options :conditions => {:method => :post} do |messages_actions|
messages_actions.connect 'boards/:board_id/topics/new', :action => 'new'
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042 messages_actions.connect 'boards/:board_id/topics/preview', :action => 'preview'
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 messages_actions.connect 'boards/:board_id/topics/:id/replies', :action => 'reply'
Toshi MARUYAMA
Rails3: route: split boards topics edit and destroy...
r8190 messages_actions.connect 'boards/:board_id/topics/:id/edit', :action => 'edit'
messages_actions.connect 'boards/:board_id/topics/:id/destroy', :action => 'destroy'
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 end
end
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Eric Davis
Refactor: Extract a new IssueMovesController from IssuesController....
r3822 map.resources :issue_moves, :only => [:new, :create], :path_prefix => '/issues', :as => 'move'
Etienne Massip
Refactor : convert queries to REST resources (also fixes #9108)....
r7529 map.resources :queries, :except => [:show]
Eric Davis
Refactor: convert many of the custom Issue routes to REST resources....
r3927
# Misc issue routes. TODO: move into resources
Jean-Philippe Lang
Changes auto_complete calls to GET requests....
r8010 map.auto_complete_issues '/issues/auto_complete', :controller => 'auto_completes', :action => 'issues', :conditions => { :method => :get }
Eric Davis
Refactor: convert many of the custom Issue routes to REST resources....
r3927 map.preview_issue '/issues/preview/:id', :controller => 'previews', :action => 'issue' # TODO: would look nicer as /issues/:id/preview
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892 map.issues_context_menu '/issues/context_menu', :controller => 'context_menus', :action => 'issues'
Eric Davis
Refactor: move IssuesController#changes to JournalsController#index....
r3920 map.issue_changes '/issues/changes', :controller => 'journals', :action => 'index'
Toshi MARUYAMA
route: code layout clean up journals route...
r8253 map.quoted_issue '/issues/:id/quoted', :controller => 'journals', :action => 'new',
:id => /\d+/, :conditions => { :method => :post }
Etienne Massip
Updated issue description diff route....
r8065
Toshi MARUYAMA
route: code layout clean up journals route...
r8253 map.connect '/journals/diff/:id', :controller => 'journals', :action => 'diff',
:id => /\d+/, :conditions => { :method => :get }
map.connect '/journals/edit/:id', :controller => 'journals', :action => 'edit',
:id => /\d+/, :conditions => { :method => [:get, :post] }
Eric Davis
Refactor: convert many of the custom Issue routes to REST resources....
r3927
Jean-Philippe Lang
Converted issue filters to non-AJAX GET requests (#1965)....
r5156 map.with_options :controller => 'gantts', :action => 'show' do |gantts_routes|
gantts_routes.connect '/projects/:project_id/issues/gantt'
Jean-Philippe Lang
Gantt routes with format....
r5160 gantts_routes.connect '/projects/:project_id/issues/gantt.:format'
gantts_routes.connect '/issues/gantt.:format'
Jean-Philippe Lang
Converted issue filters to non-AJAX GET requests (#1965)....
r5156 end
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Jean-Philippe Lang
Converted issue filters to non-AJAX GET requests (#1965)....
r5156 map.with_options :controller => 'calendars', :action => 'show' do |calendars_routes|
calendars_routes.connect '/projects/:project_id/issues/calendar'
calendars_routes.connect '/issues/calendar'
end
Eric Davis
Refactor: convert many of the custom Issue routes to REST resources....
r3927
map.with_options :controller => 'reports', :conditions => {:method => :get} do |reports|
reports.connect 'projects/:id/issues/report', :action => 'issue_report'
reports.connect 'projects/:id/issues/report/:detail', :action => 'issue_report_details'
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 end
Eric Davis
Refactor: Extract a new IssueMovesController from IssuesController....
r3822
Toshi MARUYAMA
route: code layout clean up 'my' route...
r8248 map.connect 'my/account', :controller => 'my', :action => 'account',
:conditions => {:method => [:get, :post]}
map.connect 'my/page', :controller => 'my', :action => 'page',
:conditions => {:method => :get}
# Redirects to my/page
map.connect 'my', :controller => 'my', :action => 'index',
:conditions => {:method => :get}
map.connect 'my/reset_rss_key', :controller => 'my', :action => 'reset_rss_key',
:conditions => {:method => :post}
map.connect 'my/reset_api_key', :controller => 'my', :action => 'reset_api_key',
:conditions => {:method => :post}
map.connect 'my/password', :controller => 'my', :action => 'password',
:conditions => {:method => [:get, :post]}
map.connect 'my/page_layout', :controller => 'my', :action => 'page_layout',
:conditions => {:method => :get}
map.connect 'my/add_block', :controller => 'my', :action => 'add_block',
:conditions => {:method => :post}
map.connect 'my/remove_block', :controller => 'my', :action => 'remove_block',
:conditions => {:method => :post}
map.connect 'my/order_blocks', :controller => 'my', :action => 'order_blocks',
:conditions => {:method => :post}
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042
Jean-Philippe Lang
Moved bulk_edit/update routes into issues resources....
r8028 map.resources :issues, :collection => {:bulk_edit => :get, :bulk_update => :post} do |issues|
Jean-Philippe Lang
Dropped TimeEntryReportsController....
r7907 issues.resources :time_entries, :controller => 'timelog', :collection => {:report => :get}
Jean-Philippe Lang
Makes relations resource shallow (#7366)....
r6064 issues.resources :relations, :shallow => true, :controller => 'issue_relations', :only => [:index, :show, :create, :destroy]
Eric Davis
Refactor: convert timelogs to a REST resource (:time_entries)...
r4136 end
Jean-Philippe Lang
Changed IssuesController#destroy to DELETE only....
r8030 # Bulk deletion
map.connect '/issues', :controller => 'issues', :action => 'destroy', :conditions => {:method => :delete}
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Toshi MARUYAMA
route: code layout clean up members route...
r8257 map.connect 'projects/:id/members/new', :controller => 'members',
:action => 'new', :conditions => { :method => :post }
map.connect 'members/edit/:id', :controller => 'members',
:action => 'edit', :id => /\d+/, :conditions => { :method => :post }
map.connect 'members/destroy/:id', :controller => 'members',
:action => 'destroy', :id => /\d+/, :conditions => { :method => :post }
map.connect 'members/autocomplete_for_member/:id', :controller => 'members',
:action => 'autocomplete_for_member', :conditions => { :method => :post }
Eric Davis
Refactor: convert UsersController to resource...
r4117
Jean-Philippe Lang
REST urls for user memberships....
r8026 map.resources :users
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 map.with_options :controller => 'users' do |users|
Toshi MARUYAMA
route: code layout clean up users route...
r8267 users.user_memberships 'users/:id/memberships',
:action => 'edit_membership',
:conditions => {:method => :post}
users.user_membership 'users/:id/memberships/:membership_id',
:action => 'edit_membership',
:conditions => {:method => :put}
users.connect 'users/:id/memberships/:membership_id',
:action => 'destroy_membership',
:conditions => {:method => :delete}
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 end
Eric Davis
Refactor: convert the Projects routes to resources....
r3957
Eric Davis
Refactor: convert VersionsController to a REST resource....
r3983 # For nice "roadmap" in the url for the index action
map.connect 'projects/:project_id/roadmap', :controller => 'versions', :action => 'index'
Toshi MARUYAMA
route: news: replace unused alias "all_news" and "formatted_all_news"...
r8191 map.connect 'news', :controller => 'news', :action => 'index'
map.connect 'news.:format', :controller => 'news', :action => 'index'
Eric Davis
Refactor: convert News to a REST resource...
r4100 map.preview_news '/news/preview', :controller => 'previews', :action => 'news'
Toshi MARUYAMA
route: code layout clean up comments route...
r8259 map.connect 'news/:id/comments', :controller => 'comments',
:action => 'create', :conditions => {:method => :post}
map.connect 'news/:id/comments/:comment_id', :controller => 'comments',
:action => 'destroy', :conditions => {:method => :delete}
Eric Davis
Refactor: convert News to a REST resource...
r4100
Toshi MARUYAMA
route: code layout clean up watchers route...
r8275 map.connect 'watchers/new', :controller=> 'watchers', :action => 'new',
:conditions => {:method => [:get, :post]}
map.connect 'watchers/destroy', :controller=> 'watchers', :action => 'destroy',
:conditions => {:method => :post}
map.connect 'watchers/watch', :controller=> 'watchers', :action => 'watch',
:conditions => {:method => :post}
map.connect 'watchers/unwatch', :controller=> 'watchers', :action => 'unwatch',
:conditions => {:method => :post}
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042
Eric Davis
Refactor: convert the Projects routes to resources....
r3957 map.resources :projects, :member => {
:copy => [:get, :post],
:settings => :get,
:modules => :post,
:archive => :post,
:unarchive => :post
Eric Davis
Refactor: convert ProjectEnumerations to a resource on a project....
r3961 } do |project|
project.resource :project_enumerations, :as => 'enumerations', :only => [:update, :destroy]
Jean-Philippe Lang
Routes cleanup....
r7899 project.resources :issues, :only => [:index, :new, :create] do |issues|
Jean-Philippe Lang
Dropped TimeEntryReportsController....
r7907 issues.resources :time_entries, :controller => 'timelog', :collection => {:report => :get}
Jean-Philippe Lang
Routes cleanup....
r7899 end
Jean-Philippe Lang
Fixed broken issue form update when changing tracker....
r8075 # issue form update
project.issue_form 'issues/new', :controller => 'issues', :action => 'new', :conditions => {:method => :post}
Eric Davis
Refactor: convert FilesController to a restful resource....
r3971 project.resources :files, :only => [:index, :new, :create]
Jean-Philippe Lang
Makes versions resource shallow (#7403)....
r6063 project.resources :versions, :shallow => true, :collection => {:close_completed => :put}, :member => {:status_by => :post}
Eric Davis
Refactor: convert News to a REST resource...
r4100 project.resources :news, :shallow => true
Jean-Philippe Lang
Dropped TimeEntryReportsController....
r7907 project.resources :time_entries, :controller => 'timelog', :path_prefix => 'projects/:project_id', :collection => {:report => :get}
Etienne Massip
Make queries resources fully conform to common behavior (removed additonal routes) (#9108)....
r7537 project.resources :queries, :only => [:new, :create]
Jean-Philippe Lang
Resourcified issue categories (#9553)....
r7761 project.resources :issue_categories, :shallow => true
Jean-Philippe Lang
Resourcified documents....
r7890 project.resources :documents, :shallow => true, :member => {:add_attachment => :post}
Jean-Philippe Lang
Resourcified boards....
r7900 project.resources :boards
Eric Davis
Refactor: convert timelogs to a REST resource (:time_entries)...
r4136
Eric Davis
Refactor: convert WikiController to a REST resource...
r4189 project.wiki_start_page 'wiki', :controller => 'wiki', :action => 'show', :conditions => {:method => :get}
project.wiki_index 'wiki/index', :controller => 'wiki', :action => 'index', :conditions => {:method => :get}
Jean-Philippe Lang
Fixed: 'View difference' broken on wiki page history (#6747)....
r4258 project.wiki_diff 'wiki/:id/diff/:version', :controller => 'wiki', :action => 'diff', :version => nil
Eric Davis
Refactor: convert WikiController to a REST resource...
r4189 project.wiki_diff 'wiki/:id/diff/:version/vs/:version_from', :controller => 'wiki', :action => 'diff'
project.wiki_annotate 'wiki/:id/annotate/:version', :controller => 'wiki', :action => 'annotate'
project.resources :wiki, :except => [:new, :create], :member => {
:rename => [:get, :post],
:history => :get,
:preview => :any,
:protect => :post,
:add_attachment => :post
}, :collection => {
:export => :get,
:date_index => :get
}
Eric Davis
Refactor: convert ProjectEnumerations to a resource on a project....
r3961 end
Eric Davis
Refactor: convert the Projects routes to resources....
r3957
# TODO: port to be part of the resources route(s)
map.with_options :controller => 'projects' do |project_mapper|
project_mapper.with_options :conditions => {:method => :get} do |project_views|
project_views.connect 'projects/:id/settings/:tab', :controller => 'projects', :action => 'settings'
Eric Davis
Refactor: convert many of the custom Issue routes to REST resources....
r3927 project_views.connect 'projects/:project_id/issues/:copy_from/copy', :controller => 'issues', :action => 'new'
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 end
end
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Eric Davis
Refactor: convert the Projects routes to resources....
r3957 map.with_options :controller => 'activities', :action => 'index', :conditions => {:method => :get} do |activity|
activity.connect 'projects/:id/activity'
activity.connect 'projects/:id/activity.:format'
activity.connect 'activity', :id => nil
activity.connect 'activity.:format', :id => nil
end
Eric Davis
Refactor: convert VersionsController to a REST resource....
r3983
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 map.with_options :controller => 'repositories' do |repositories|
repositories.with_options :conditions => {:method => :get} do |repository_views|
Jean-Philippe Lang
Fixing repository routes (#2967)....
r2513 repository_views.connect 'projects/:id/repository', :action => 'show'
repository_views.connect 'projects/:id/repository/edit', :action => 'edit'
repository_views.connect 'projects/:id/repository/statistics', :action => 'stats'
Toshi MARUYAMA
route: code layout clean up repository route...
r8283
Jean-Philippe Lang
Fixing repository routes (#2967)....
r2513 repository_views.connect 'projects/:id/repository/revisions', :action => 'revisions'
repository_views.connect 'projects/:id/repository/revisions.:format', :action => 'revisions'
repository_views.connect 'projects/:id/repository/revisions/:rev', :action => 'revision'
repository_views.connect 'projects/:id/repository/revisions/:rev/diff', :action => 'diff'
repository_views.connect 'projects/:id/repository/revisions/:rev/diff.:format', :action => 'diff'
Toshi MARUYAMA
route: code layout clean up repository route...
r8283 repository_views.connect 'projects/:id/repository/revisions/:rev/raw/*path', :action => 'entry',
:format => 'raw', :requirements => { :rev => /[a-z0-9\.\-_]+/ }
repository_views.connect 'projects/:id/repository/revisions/:rev/:action/*path',
:requirements => { :rev => /[a-z0-9\.\-_]+/ }
Jean-Philippe Lang
Use /raw/ for url instead of ?format=raw for getting raw repository files (#1901, #4119)....
r2960 repository_views.connect 'projects/:id/repository/raw/*path', :action => 'entry', :format => 'raw'
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042 repository_views.connect 'projects/:id/repository/browse/*path', :action => 'browse'
Jean-Philippe Lang
Use /raw/ for url instead of ?format=raw for getting raw repository files (#1901, #4119)....
r2960 repository_views.connect 'projects/:id/repository/entry/*path', :action => 'entry'
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042 repository_views.connect 'projects/:id/repository/changes/*path', :action => 'changes'
repository_views.connect 'projects/:id/repository/annotate/*path', :action => 'annotate'
repository_views.connect 'projects/:id/repository/diff/*path', :action => 'diff'
Etienne Massip
Added missing repository route...
r8076 repository_views.connect 'projects/:id/repository/show/*path', :action => 'show'
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042 repository_views.connect 'projects/:id/repository/graph', :action => 'graph'
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 end
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Toshi MARUYAMA
route: code layout clean up repository route...
r8283 repositories.connect 'projects/:id/repository/revision', :action => 'revision',
:conditions => {:method => [:get, :post]}
repositories.connect 'projects/:id/repository/committers', :action => 'committers',
:conditions => {:method => [:get, :post]}
repositories.connect 'projects/:id/repository/edit', :action => 'edit',
:conditions => {:method => :post}
repositories.connect 'projects/:id/repository/destroy', :action => 'destroy',
:conditions => {:method => :post}
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 end
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042
Jean-Philippe Lang
Resourcified attachments....
r7828 map.resources :attachments, :only => [:show, :destroy]
# additional routes for having the file name at the end of url
Toshi MARUYAMA
route: code layout clean up attachments route...
r8258 map.connect 'attachments/:id/:filename', :controller => 'attachments',
:action => 'show', :id => /\d+/, :filename => /.*/,
:conditions => {:method => :get}
map.connect 'attachments/download/:id/:filename', :controller => 'attachments',
:action => 'download', :id => /\d+/, :filename => /.*/,
:conditions => {:method => :get}
map.connect 'attachments/download/:id', :controller => 'attachments',
:action => 'download', :id => /\d+/,
:conditions => {:method => :get}
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Jean-Philippe Lang
Adds routes for group users....
r7826 map.resources :groups, :member => {:autocomplete_for_user => :get}
Toshi MARUYAMA
route: code layout clean up groups route...
r8261 map.group_users 'groups/:id/users', :controller => 'groups',
:action => 'add_users', :id => /\d+/,
:conditions => {:method => :post}
map.group_user 'groups/:id/users/:user_id', :controller => 'groups',
:action => 'remove_user', :id => /\d+/,
:conditions => {:method => :delete}
map.connect 'groups/destroy_membership/:id', :controller => 'groups',
:action => 'destroy_membership', :id => /\d+/,
:conditions => {:method => :post}
map.connect 'groups/edit_membership/:id', :controller => 'groups',
:action => 'edit_membership', :id => /\d+/,
:conditions => {:method => :post}
Jean-Philippe Lang
Adds routes for group users....
r7826
Jean-Philippe Lang
Resourcified trackers....
r7768 map.resources :trackers, :except => :show
Jean-Philippe Lang
Resourcified issue statuses....
r7770 map.resources :issue_statuses, :except => :show, :collection => {:update_issue_done_ratio => :post}
Jean-Philippe Lang
Resourcified custom fields....
r8024 map.resources :custom_fields, :except => :show
Jean-Philippe Lang
Resourcified roles....
r8025 map.resources :roles, :except => :show, :collection => {:permissions => [:get, :post]}
Jean-Philippe Lang
Resourcified enumerations....
r8069 map.resources :enumerations, :except => :show
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042 map.connect 'search', :controller => 'search', :action => 'index', :conditions => {:method => :get}
Toshi MARUYAMA
route: code layout clean up mail_handler route...
r8280 map.connect 'mail_handler', :controller => 'mail_handler',
:action => 'index', :conditions => {:method => :post}
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042
Toshi MARUYAMA
route: code layout clean up admin route...
r8282 map.connect 'admin', :controller => 'admin', :action => 'index',
:conditions => {:method => :get}
map.connect 'admin/projects', :controller => 'admin', :action => 'projects',
:conditions => {:method => :get}
map.connect 'admin/plugins', :controller => 'admin', :action => 'plugins',
:conditions => {:method => :get}
map.connect 'admin/info', :controller => 'admin', :action => 'info',
:conditions => {:method => :get}
map.connect 'admin/test_email', :controller => 'admin', :action => 'test_email',
:conditions => {:method => :get}
map.connect 'admin/default_configuration', :controller => 'admin',
:action => 'default_configuration', :conditions => {:method => :post}
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042
# Used by AuthSourcesControllerTest
# TODO : refactor *AuthSourcesController to remove these routes
Toshi MARUYAMA
route: code layout clean up auth_sources route...
r8288 map.connect 'auth_sources', :controller => 'auth_sources',
:action => 'index', :conditions => {:method => :get}
map.connect 'auth_sources/new', :controller => 'auth_sources',
:action => 'new', :conditions => {:method => :get}
map.connect 'auth_sources/create', :controller => 'auth_sources',
:action => 'create', :conditions => {:method => :post}
map.connect 'auth_sources/destroy/:id', :controller => 'auth_sources',
:action => 'destroy', :id => /\d+/, :conditions => {:method => :post}
map.connect 'auth_sources/test_connection/:id', :controller => 'auth_sources',
:action => 'test_connection', :conditions => {:method => :get}
map.connect 'auth_sources/edit/:id', :controller => 'auth_sources',
:action => 'edit', :id => /\d+/, :conditions => {:method => :get}
map.connect 'auth_sources/update/:id', :controller => 'auth_sources',
:action => 'update', :id => /\d+/, :conditions => {:method => :post}
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042
Toshi MARUYAMA
route: code layout clean up ldap_auth_sources route...
r8291 map.connect 'ldap_auth_sources', :controller => 'ldap_auth_sources',
:action => 'index', :conditions => {:method => :get}
map.connect 'ldap_auth_sources/new', :controller => 'ldap_auth_sources',
:action => 'new', :conditions => {:method => :get}
map.connect 'ldap_auth_sources/create', :controller => 'ldap_auth_sources',
:action => 'create', :conditions => {:method => :post}
map.connect 'ldap_auth_sources/destroy/:id', :controller => 'ldap_auth_sources',
:action => 'destroy', :id => /\d+/, :conditions => {:method => :post}
map.connect 'ldap_auth_sources/test_connection/:id', :controller => 'ldap_auth_sources',
:action => 'test_connection', :conditions => {:method => :get}
map.connect 'ldap_auth_sources/edit/:id', :controller => 'ldap_auth_sources',
:action => 'edit', :id => /\d+/, :conditions => {:method => :get}
map.connect 'ldap_auth_sources/update/:id', :controller => 'ldap_auth_sources',
:action => 'update', :id => /\d+/, :conditions => {:method => :post}
Toshi MARUYAMA
route: code layout clean up workflows route...
r8292 map.connect 'workflows', :controller => 'workflows',
:action => 'index', :conditions => {:method => :get}
map.connect 'workflows/edit', :controller => 'workflows',
:action => 'edit', :conditions => {:method => [:get, :post]}
map.connect 'workflows/copy', :controller => 'workflows',
:action => 'copy', :conditions => {:method => [:get, :post]}
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042 map.connect 'settings', :controller => 'settings', :action => 'index', :conditions => {:method => :get}
map.connect 'settings/edit', :controller => 'settings', :action => 'edit', :conditions => {:method => [:get, :post]}
map.connect 'settings/plugin/:id', :controller => 'settings', :action => 'plugin', :conditions => {:method => [:get, :post]}
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Jean-Philippe Lang
Replaces the repositories management SOAP API with a simple REST API....
r2374 map.with_options :controller => 'sys' do |sys|
Toshi MARUYAMA
route: code layout clean up sys route...
r8277 sys.connect 'sys/projects.:format',
:action => 'projects',
:conditions => {:method => :get}
sys.connect 'sys/projects/:id/repository.:format',
:action => 'create_project_repository',
:conditions => {:method => :post}
sys.connect 'sys/fetch_changesets',
:action => 'fetch_changesets',
:conditions => {:method => :get}
Jean-Philippe Lang
Replaces the repositories management SOAP API with a simple REST API....
r2374 end
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042 map.connect 'robots.txt', :controller => 'welcome', :action => 'robots', :conditions => {:method => :get}
Eric Davis
Added the ability to login via OpenID....
r2381 # Used for OpenID
map.root :controller => 'account', :action => 'login'
Jean-Philippe Lang
Initial commit...
r2 end