仓库releases文件下载链接构建

This commit is contained in:
2024-04-16 09:41:48 +08:00
parent ad9345badb
commit 89565acd13
3 changed files with 16 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ Rails.application.routes.draw do
get 'attachments/entries/get_file', to: 'attachments#get_file'
get 'attachments/download/:id', to: 'attachments#show'
get 'attachments/download/:id/:filename', to: 'attachments#show'
get ':owner/:repo/releases/download/:tag_name/:filename', to: 'version_releases#download'
get 'check_pr_url',to: "settings#check_url"
# get 'auth/qq/callback', to: 'oauth/qq#create'