mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 16:56:00 +01:00
Makes sys#fetch_changesets accept POST requests (#17077).
git-svn-id: http://svn.redmine.org/redmine/trunk@13392 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -336,7 +336,7 @@ RedmineApp::Application.routes.draw do
|
|||||||
|
|
||||||
match 'sys/projects', :to => 'sys#projects', :via => :get
|
match 'sys/projects', :to => 'sys#projects', :via => :get
|
||||||
match 'sys/projects/:id/repository', :to => 'sys#create_project_repository', :via => :post
|
match 'sys/projects/:id/repository', :to => 'sys#create_project_repository', :via => :post
|
||||||
match 'sys/fetch_changesets', :to => 'sys#fetch_changesets', :via => :get
|
match 'sys/fetch_changesets', :to => 'sys#fetch_changesets', :via => [:get, :post]
|
||||||
|
|
||||||
match 'uploads', :to => 'attachments#upload', :via => :post
|
match 'uploads', :to => 'attachments#upload', :via => :post
|
||||||
|
|
||||||
|
|||||||
@@ -31,5 +31,9 @@ class RoutingSysTest < ActionController::IntegrationTest
|
|||||||
{ :method => 'get', :path => "/sys/fetch_changesets" },
|
{ :method => 'get', :path => "/sys/fetch_changesets" },
|
||||||
{ :controller => 'sys', :action => 'fetch_changesets' }
|
{ :controller => 'sys', :action => 'fetch_changesets' }
|
||||||
)
|
)
|
||||||
|
assert_routing(
|
||||||
|
{ :method => 'post', :path => "/sys/fetch_changesets" },
|
||||||
|
{ :controller => 'sys', :action => 'fetch_changesets' }
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user