summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb
index eace7516e91..40c149abda2 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -428,9 +428,9 @@ Rails.application.routes.draw do
scope module: :projects do
# Git HTTP clients ('git clone' etc.)
scope constraints: { format: /(git|wiki\.git)/ } do
- get '/info/refs', to: 'git_http#info_refs', only: :get
- post '/git-upload-pack', to: 'git_http#git_upload_pack', only: :post
- post '/git-receive-pack', to: 'git_http#git_receive_pack', only: :post
+ get '/info/refs', to: 'git_http#info_refs'
+ post '/git-upload-pack', to: 'git_http#git_upload_pack'
+ post '/git-receive-pack', to: 'git_http#git_receive_pack'
end
# Blob routes: