##// END OF EJS Templates
back out r12680...
back out r12680 <pre> 1) Failure: test_children(ProjectTest) [test/unit/project_test.rb:374]: <[5, 3, 4]> expected but was <[3, 4, 5]>. </pre> git-svn-id: http://svn.redmine.org/redmine/trunk@12681 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r11716:4bd874ab46c3
r12406:89c43d24c82f
Show More
routes.rb
356 lines | 16.3 KiB | text/x-ruby | RubyLexer
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 # Redmine - project management software
Jean-Philippe Lang
Copyright for 2013 (#12788)....
r10939 # Copyright (C) 2006-2013 Jean-Philippe Lang
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 #
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
RedmineApp::Application.routes.draw do
root :to => 'welcome#index', :as => 'home'
Jean-Philippe Lang
Specifies HTTP methods for all routes....
r10730 match 'login', :to => 'account#login', :as => 'signin', :via => [:get, :post]
match 'logout', :to => 'account#logout', :as => 'signout', :via => [:get, :post]
Jean-Philippe Lang
Use named routes....
r9757 match 'account/register', :to => 'account#register', :via => [:get, :post], :as => 'register'
match 'account/lost_password', :to => 'account#lost_password', :via => [:get, :post], :as => 'lost_password'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 match 'account/activate', :to => 'account#activate', :via => :get
Jean-Philippe Lang
Adds a way for a registered user to get a new action email (#14228)....
r11716 get 'account/activation_email', :to => 'account#activation_email', :as => 'activation_email'
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb...
r9366
Jean-Philippe Lang
Fixed that previews are broken by r10957 (#12642)....
r10903 match '/news/preview', :controller => 'previews', :action => 'news', :as => 'preview_news', :via => [:get, :post, :put]
match '/issues/preview/new/:project_id', :to => 'previews#issue', :as => 'preview_new_issue', :via => [:get, :post, :put]
match '/issues/preview/edit/:id', :to => 'previews#issue', :as => 'preview_edit_issue', :via => [:get, :post, :put]
match '/issues/preview', :to => 'previews#issue', :as => 'preview_issue', :via => [:get, :post, :put]
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb...
r9366
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 match 'projects/:id/wiki', :to => 'wikis#edit', :via => :post
match 'projects/:id/wiki/destroy', :to => 'wikis#destroy', :via => [:get, :post]
Jean-Philippe Lang
Adds route names for r11072....
r10843 match 'boards/:board_id/topics/new', :to => 'messages#new', :via => [:get, :post], :as => 'new_board_message'
Jean-Philippe Lang
Use named routes....
r9820 get 'boards/:board_id/topics/:id', :to => 'messages#show', :as => 'board_message'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 match 'boards/:board_id/topics/quote/:id', :to => 'messages#quote', :via => [:get, :post]
get 'boards/:board_id/topics/:id/edit', :to => 'messages#edit'
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb...
r9366
Jean-Philippe Lang
Adds route names for r11072....
r10843 post 'boards/:board_id/topics/preview', :to => 'messages#preview', :as => 'preview_board_message'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 post 'boards/:board_id/topics/:id/replies', :to => 'messages#reply'
post 'boards/:board_id/topics/:id/edit', :to => 'messages#edit'
post 'boards/:board_id/topics/:id/destroy', :to => 'messages#destroy'
# Misc issue routes. TODO: move into resources
match '/issues/auto_complete', :to => 'auto_completes#issues', :via => :get, :as => 'auto_complete_issues'
Jean-Philippe Lang
Specifies HTTP methods for all routes....
r10730 match '/issues/context_menu', :to => 'context_menus#issues', :as => 'issues_context_menu', :via => [:get, :post]
match '/issues/changes', :to => 'journals#index', :as => 'issue_changes', :via => :get
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 match '/issues/:id/quoted', :to => 'journals#new', :id => /\d+/, :via => :post, :as => 'quoted_issue'
match '/journals/diff/:id', :to => 'journals#diff', :id => /\d+/, :via => :get
match '/journals/edit/:id', :to => 'journals#edit', :id => /\d+/, :via => [:get, :post]
Jean-Philippe Lang
Code cleanup, use named routes....
r10844 get '/projects/:project_id/issues/gantt', :to => 'gantts#show', :as => 'project_gantt'
Jean-Philippe Lang
Specifies HTTP methods for all routes....
r10730 get '/issues/gantt', :to => 'gantts#show'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346
Jean-Philippe Lang
Code cleanup, use named routes....
r10844 get '/projects/:project_id/issues/calendar', :to => 'calendars#show', :as => 'project_calendar'
Jean-Philippe Lang
Specifies HTTP methods for all routes....
r10730 get '/issues/calendar', :to => 'calendars#show'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346
Jean-Philippe Lang
Code cleanup, use named routes....
r10847 get 'projects/:id/issues/report', :to => 'reports#issue_report', :as => 'project_issues_report'
get 'projects/:id/issues/report/:detail', :to => 'reports#issue_report_details', :as => 'project_issues_report_details'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346
match 'my/account', :controller => 'my', :action => 'account', :via => [:get, :post]
match 'my/account/destroy', :controller => 'my', :action => 'destroy', :via => [:get, :post]
match 'my/page', :controller => 'my', :action => 'page', :via => :get
match 'my', :controller => 'my', :action => 'index', :via => :get # Redirects to my/page
match 'my/reset_rss_key', :controller => 'my', :action => 'reset_rss_key', :via => :post
match 'my/reset_api_key', :controller => 'my', :action => 'reset_api_key', :via => :post
match 'my/password', :controller => 'my', :action => 'password', :via => [:get, :post]
match 'my/page_layout', :controller => 'my', :action => 'page_layout', :via => :get
match 'my/add_block', :controller => 'my', :action => 'add_block', :via => :post
match 'my/remove_block', :controller => 'my', :action => 'remove_block', :via => :post
match 'my/order_blocks', :controller => 'my', :action => 'order_blocks', :via => :post
resources :users
match 'users/:id/memberships/:membership_id', :to => 'users#edit_membership', :via => :put, :as => 'user_membership'
match 'users/:id/memberships/:membership_id', :to => 'users#destroy_membership', :via => :delete
match 'users/:id/memberships', :to => 'users#edit_membership', :via => :post, :as => 'user_memberships'
Jean-Philippe Lang
Use POST/DELETE to watch/unwatch an item....
r11113 post 'watchers/watch', :to => 'watchers#watch', :as => 'watch'
delete 'watchers/watch', :to => 'watchers#unwatch'
Jean-Philippe Lang
Clean up watchers routes declaration....
r11112 get 'watchers/new', :to => 'watchers#new'
post 'watchers', :to => 'watchers#create'
post 'watchers/append', :to => 'watchers#append'
Jean-Philippe Lang
Fixed that delete watcher link was broken by r11290 (#13231)....
r11213 delete 'watchers', :to => 'watchers#destroy'
Jean-Philippe Lang
Clean up watchers routes declaration....
r11112 get 'watchers/autocomplete_for_user', :to => 'watchers#autocomplete_for_user'
Jean-Philippe Lang
Add/remove issue watchers via the REST API (#6727)....
r11060 # Specific routes for issue watchers API
post 'issues/:object_id/watchers', :to => 'watchers#create', :object_type => 'issue'
delete 'issues/:object_id/watchers/:user_id' => 'watchers#destroy', :object_type => 'issue'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346
resources :projects do
member do
Jean-Philippe Lang
Routes cleanup....
r10751 get 'settings(/:tab)', :action => 'settings', :as => 'settings'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 post 'modules'
post 'archive'
post 'unarchive'
Jean-Philippe Lang
Ability to close projects (read-only) (#3640)....
r9700 post 'close'
post 'reopen'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 match 'copy', :via => [:get, :post]
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 end
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346
Jean-Philippe Lang
Use a shallow block instead of the :shallow option that ignores routes scope (#14023)....
r11621 shallow do
resources :memberships, :controller => 'members', :only => [:index, :show, :new, :create, :update, :destroy] do
collection do
get 'autocomplete'
end
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 end
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
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 resource :enumerations, :controller => 'project_enumerations', :only => [:update, :destroy]
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Jean-Philippe Lang
Code cleanup, use named routes....
r10837 get 'issues/:copy_from/copy', :to => 'issues#new', :as => 'copy_issue'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 resources :issues, :only => [:index, :new, :create] do
resources :time_entries, :controller => 'timelog' do
collection do
get 'report'
end
end
end
# issue form update
Jean-Philippe Lang
Fixed that updating the issue form was broken by r4011 when user is not allowed to add issues (#13188)....
r11175 match 'issues/update_form', :controller => 'issues', :action => 'update_form', :via => [:put, :post], :as => 'issue_form'
Eric Davis
Refactor: convert many of the custom Issue routes to REST resources....
r3927
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 resources :files, :only => [:index, :new, :create]
Eric Davis
Refactor: Extract a new IssueMovesController from IssuesController....
r3822
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 resources :versions, :except => [:index, :show, :edit, :update, :destroy] do
collection do
put 'close_completed'
end
end
Jean-Philippe Lang
Specifies HTTP methods for all routes....
r10730 get 'versions.:format', :to => 'versions#index'
get 'roadmap', :to => 'versions#index', :format => false
get 'versions', :to => 'versions#index'
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 resources :news, :except => [:show, :edit, :update, :destroy]
resources :time_entries, :controller => 'timelog' do
get 'report', :on => :collection
end
resources :queries, :only => [:new, :create]
Jean-Philippe Lang
Use a shallow block instead of the :shallow option that ignores routes scope (#14023)....
r11621 shallow do
resources :issue_categories
end
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 resources :documents, :except => [:show, :edit, :update, :destroy]
resources :boards
Jean-Philippe Lang
Use a shallow block instead of the :shallow option that ignores routes scope (#14023)....
r11621 shallow do
resources :repositories, :except => [:index, :show] do
member do
match 'committers', :via => [:get, :post]
end
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 end
end
Jean-Philippe Lang
Use a shallow block instead of the :shallow option that ignores routes scope (#14023)....
r11621
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 match 'wiki/index', :controller => 'wiki', :action => 'index', :via => :get
Jean-Philippe Lang
Use named routes in controllers....
r10754 resources :wiki, :except => [:index, :new, :create], :as => 'wiki_page' do
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 member do
get 'rename'
post 'rename'
get 'history'
get 'diff'
match 'preview', :via => [:post, :put]
post 'protect'
post 'add_attachment'
end
collection do
get 'export'
get 'date_index'
end
Toshi MARUYAMA
route: move 'issues/new' matching before project/issues resources...
r8320 end
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 match 'wiki', :controller => 'wiki', :action => 'show', :via => :get
Jean-Philippe Lang
Plugins cannot route wiki page sub-path (#12749)....
r10936 get 'wiki/:id/:version', :to => 'wiki#show', :constraints => {:version => /\d+/}
Jean-Philippe Lang
Ability to delete a version from a wiki page history (#10852)....
r10493 delete 'wiki/:id/:version', :to => 'wiki#destroy_version'
Jean-Philippe Lang
Wiki page versions routes cleanup....
r10476 get 'wiki/:id/:version/annotate', :to => 'wiki#annotate'
get 'wiki/:id/:version/diff', :to => 'wiki#diff'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 end
Jean-Philippe Lang
Fixed broken issue form update when changing tracker....
r8075
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 resources :issues do
collection do
match 'bulk_edit', :via => [:get, :post]
post 'bulk_update'
end
resources :time_entries, :controller => 'timelog' do
collection do
get 'report'
end
end
Jean-Philippe Lang
Use a shallow block instead of the :shallow option that ignores routes scope (#14023)....
r11621 shallow do
resources :relations, :controller => 'issue_relations', :only => [:index, :show, :create, :destroy]
end
Eric Davis
Refactor: convert ProjectEnumerations to a resource on a project....
r3961 end
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 match '/issues', :controller => 'issues', :action => 'destroy', :via => :delete
resources :queries, :except => [:show]
Eric Davis
Refactor: convert the Projects routes to resources....
r3957
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 resources :news, :only => [:index, :show, :edit, :update, :destroy]
match '/news/:id/comments', :to => 'comments#create', :via => :post
match '/news/:id/comments/:comment_id', :to => 'comments#destroy', :via => :delete
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb...
r9366
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 resources :versions, :only => [:show, :edit, :update, :destroy] do
post 'status_by', :on => :member
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 end
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346
resources :documents, :only => [:show, :edit, :update, :destroy] do
post 'add_attachment', :on => :member
Eric Davis
Refactor: convert the Projects routes to resources....
r3957 end
Eric Davis
Refactor: convert VersionsController to a REST resource....
r3983
Jean-Philippe Lang
Specifies HTTP methods for all routes....
r10730 match '/time_entries/context_menu', :to => 'context_menus#time_entries', :as => :time_entries_context_menu, :via => [:get, :post]
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346
resources :time_entries, :controller => 'timelog', :except => :destroy do
collection do
get 'report'
get 'bulk_edit'
post 'bulk_update'
Eric Davis
Converted routing and urls to follow the Rails REST convention....
r2315 end
end
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 match '/time_entries/:id', :to => 'timelog#destroy', :via => :delete, :id => /\d+/
# TODO: delete /time_entries for bulk deletion
match '/time_entries/destroy', :to => 'timelog#destroy', :via => :delete
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb...
r9366
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 get 'projects/:id/activity', :to => 'activities#index'
get 'projects/:id/activity.:format', :to => 'activities#index'
get 'activity', :to => 'activities#index'
# repositories routes
get 'projects/:id/repository/:repository_id/statistics', :to => 'repositories#stats'
get 'projects/:id/repository/:repository_id/graph', :to => 'repositories#graph'
Toshi MARUYAMA
route: scm: fix git and mercurial changes action...
r9434 get 'projects/:id/repository/:repository_id/changes(/*path(.:ext))',
:to => 'repositories#changes'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 get 'projects/:id/repository/:repository_id/revisions/:rev', :to => 'repositories#revision'
Toshi MARUYAMA
backout r10707 (#12196)...
r10496 get 'projects/:id/repository/:repository_id/revision', :to => 'repositories#revision'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 post 'projects/:id/repository/:repository_id/revisions/:rev/issues', :to => 'repositories#add_related_issue'
delete 'projects/:id/repository/:repository_id/revisions/:rev/issues/:issue_id', :to => 'repositories#remove_related_issue'
get 'projects/:id/repository/:repository_id/revisions', :to => 'repositories#revisions'
Toshi MARUYAMA
route: add constraints to repositories which are lost in Rails3 route...
r9364 get 'projects/:id/repository/:repository_id/revisions/:rev/:action(/*path(.:ext))',
:controller => 'repositories',
Jean-Philippe Lang
Fixed: unified diff link broken on specific file/revision diff (#11325)....
r9726 :format => false,
Toshi MARUYAMA
route: add constraints to repositories which are lost in Rails3 route...
r9364 :constraints => {
Toshi MARUYAMA
route: scm: split entry and raw actions...
r9442 :action => /(browse|show|entry|raw|annotate|diff)/,
Toshi MARUYAMA
route: add constraints to repositories which are lost in Rails3 route...
r9364 :rev => /[a-z0-9\.\-_]+/
}
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346
get 'projects/:id/repository/statistics', :to => 'repositories#stats'
get 'projects/:id/repository/graph', :to => 'repositories#graph'
Toshi MARUYAMA
route: scm: fix git and mercurial changes action...
r9434 get 'projects/:id/repository/changes(/*path(.:ext))',
:to => 'repositories#changes'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 get 'projects/:id/repository/revisions', :to => 'repositories#revisions'
get 'projects/:id/repository/revisions/:rev', :to => 'repositories#revision'
Toshi MARUYAMA
backout r10707 (#12196)...
r10496 get 'projects/:id/repository/revision', :to => 'repositories#revision'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 post 'projects/:id/repository/revisions/:rev/issues', :to => 'repositories#add_related_issue'
delete 'projects/:id/repository/revisions/:rev/issues/:issue_id', :to => 'repositories#remove_related_issue'
Toshi MARUYAMA
route: add constraints to repositories which are lost in Rails3 route...
r9364 get 'projects/:id/repository/revisions/:rev/:action(/*path(.:ext))',
:controller => 'repositories',
Jean-Philippe Lang
Fixed: unified diff link broken on specific file/revision diff (#11325)....
r9726 :format => false,
Toshi MARUYAMA
route: add constraints to repositories which are lost in Rails3 route...
r9364 :constraints => {
Toshi MARUYAMA
route: scm: split entry and raw actions...
r9442 :action => /(browse|show|entry|raw|annotate|diff)/,
Toshi MARUYAMA
route: add constraints to repositories which are lost in Rails3 route...
r9364 :rev => /[a-z0-9\.\-_]+/
}
Toshi MARUYAMA
route: scm: split entry and raw actions...
r9442 get 'projects/:id/repository/:repository_id/:action(/*path(.:ext))',
:controller => 'repositories',
:action => /(browse|show|entry|raw|changes|annotate|diff)/
get 'projects/:id/repository/:action(/*path(.:ext))',
:controller => 'repositories',
:action => /(browse|show|entry|raw|changes|annotate|diff)/
Toshi MARUYAMA
route: scm: fix diff of two revisions...
r9445
get 'projects/:id/repository/:repository_id', :to => 'repositories#show', :path => nil
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 get 'projects/:id/repository', :to => 'repositories#show', :path => nil
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042
Jean-Philippe Lang
Resourcified attachments....
r7828 # additional routes for having the file name at the end of url
Jean-Philippe Lang
Add named routes for attachments and use route helpers in #link_to_attachment....
r10957 get 'attachments/:id/:filename', :to => 'attachments#show', :id => /\d+/, :filename => /.*/, :as => 'named_attachment'
get 'attachments/download/:id/:filename', :to => 'attachments#download', :id => /\d+/, :filename => /.*/, :as => 'download_named_attachment'
get 'attachments/download/:id', :to => 'attachments#download', :id => /\d+/
Jean-Philippe Lang
Adds a named route for thumbnails and use route helper in #thumbnail_tag....
r10958 get 'attachments/thumbnail/:id(/:size)', :to => 'attachments#thumbnail', :id => /\d+/, :size => /\d+/, :as => 'thumbnail'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 resources :attachments, :only => [:show, :destroy]
resources :groups do
member do
get 'autocomplete_for_user'
end
end
match 'groups/:id/users', :controller => 'groups', :action => 'add_users', :id => /\d+/, :via => :post, :as => 'group_users'
match 'groups/:id/users/:user_id', :controller => 'groups', :action => 'remove_user', :id => /\d+/, :via => :delete, :as => 'group_user'
match 'groups/destroy_membership/:id', :controller => 'groups', :action => 'destroy_membership', :id => /\d+/, :via => :post
match 'groups/edit_membership/:id', :controller => 'groups', :action => 'edit_membership', :id => /\d+/, :via => :post
Jean-Philippe Lang
Adds a view for editing all trackers fields....
r10100 resources :trackers, :except => :show do
collection do
match 'fields', :via => [:get, :post]
end
end
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 resources :issue_statuses, :except => :show do
collection do
post 'update_issue_done_ratio'
end
end
resources :custom_fields, :except => :show
Jean-Philippe Lang
Expose roles details via REST API (#11502)....
r10409 resources :roles do
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 collection do
match 'permissions', :via => [:get, :post]
end
Jean-Philippe Lang
Replaces the repositories management SOAP API with a simple REST API....
r2374 end
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 resources :enumerations, :except => :show
Jean-Philippe Lang
Makes enumerations available through the REST API....
r10453 match 'enumerations/:type', :to => 'enumerations#index', :via => :get
Toshi MARUYAMA
remove trailing white-spaces from config/routes.rb....
r6340
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 get 'projects/:id/search', :controller => 'search', :action => 'index'
get 'search', :controller => 'search', :action => 'index'
Jean-Philippe Lang
Adds support for adding attachments to issues through the REST API (#8171)....
r8808
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 match 'mail_handler', :controller => 'mail_handler', :action => 'index', :via => :post
Etienne Massip
Explicitly declare all routes and deactivate default route....
r8042
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 match 'admin', :controller => 'admin', :action => 'index', :via => :get
match 'admin/projects', :controller => 'admin', :action => 'projects', :via => :get
match 'admin/plugins', :controller => 'admin', :action => 'plugins', :via => :get
match 'admin/info', :controller => 'admin', :action => 'info', :via => :get
match 'admin/test_email', :controller => 'admin', :action => 'test_email', :via => :get
match 'admin/default_configuration', :controller => 'admin', :action => 'default_configuration', :via => :post
resources :auth_sources do
member do
Jean-Philippe Lang
Make the tests pass when config.threadsafe! is enabled (#12097)....
r10683 get 'test_connection', :as => 'try_connection'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 end
Jean-Philippe Lang
Auto-populate fields while creating a new user with LDAP (#10286)....
r10850 collection do
get 'autocomplete_for_new_user'
end
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 end
match 'workflows', :controller => 'workflows', :action => 'index', :via => :get
match 'workflows/edit', :controller => 'workflows', :action => 'edit', :via => [:get, :post]
Jean-Philippe Lang
Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521)....
r9794 match 'workflows/permissions', :controller => 'workflows', :action => 'permissions', :via => [:get, :post]
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 match 'workflows/copy', :controller => 'workflows', :action => 'copy', :via => [:get, :post]
match 'settings', :controller => 'settings', :action => 'index', :via => :get
match 'settings/edit', :controller => 'settings', :action => 'edit', :via => [:get, :post]
Jean-Philippe Lang
Use named routes in controllers....
r10754 match 'settings/plugin/:id', :controller => 'settings', :action => 'plugin', :via => [:get, :post], :as => 'plugin_settings'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346
match 'sys/projects', :to => 'sys#projects', :via => :get
match 'sys/projects/:id/repository', :to => 'sys#create_project_repository', :via => :post
match 'sys/fetch_changesets', :to => 'sys#fetch_changesets', :via => :get
match 'uploads', :to => 'attachments#upload', :via => :post
get 'robots.txt', :to => 'welcome#robots'
Dir.glob File.expand_path("plugins/*", Rails.root) do |plugin_dir|
file = File.join(plugin_dir, "config/routes.rb")
if File.exists?(file)
begin
instance_eval File.read(file)
rescue Exception => e
puts "An error occurred while loading the routes definition of #{File.basename(plugin_dir)} plugin (#{file}): #{e.message}."
exit 1
end
end
end
Jean-Philippe Lang
Initial commit...
r2 end