FIX 处理版本库zip、gzip包链接为无效的问题

This commit is contained in:
jasder
2021-06-22 09:39:44 +08:00
parent 62bd331876
commit fff21a1bc8
7 changed files with 67 additions and 13 deletions

View File

@@ -416,7 +416,6 @@ Rails.application.routes.draw do
member do
get :files
get :detail
get :archive
get :entries
match :sub_entries, :via => [:get, :put]
get :commits
@@ -431,6 +430,7 @@ Rails.application.routes.draw do
get 'commits/:sha', to: 'repositories#commit', as: 'commit'
get 'readme'
get 'languages'
get 'archive/:archive', to: 'repositories#archive', as: "archive", constraints: { archive: /.+/, format: /(zip|gzip)/ }
end
end