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 'sys/fetch_changesets', :to => 'sys#fetch_changesets', :via => [:get, :post]
match 'uploads', :to => 'attachments#upload', :via => :post
{ :method => 'get', :path => "/sys/fetch_changesets" },
{ :controller => 'sys', :action => 'fetch_changesets' }
)
+ assert_routing(
+ { :method => 'post', :path => "/sys/fetch_changesets" },
+ { :controller => 'sys', :action => 'fetch_changesets' }
+ )
end
end