更改:下载文件以及查看文件逻辑

This commit is contained in:
2023-04-12 14:51:27 +08:00
parent ccede16716
commit 0830850518
5 changed files with 19 additions and 15 deletions

View File

@@ -507,7 +507,7 @@ Rails.application.routes.draw do
get 'readme'
get 'languages'
get 'archive/:archive', to: 'repositories#archive', as: "archive", constraints: { archive: /.+/, format: /(zip|gzip)/ }
get 'raw', to: 'repositories#raw', as: "raw"
get 'raw/*filepath', to: 'repositories#raw', as: "raw", constraints: { filepath: /.+/}
end
end