仓库releases文件下载链接构建,文件后缀路由
This commit is contained in:
parent
d84ebe0f42
commit
5e9621d8d7
|
@ -19,7 +19,7 @@ Rails.application.routes.draw do
|
||||||
get 'attachments/entries/get_file', to: 'attachments#get_file'
|
get 'attachments/entries/get_file', to: 'attachments#get_file'
|
||||||
get 'attachments/download/:id', to: 'attachments#show'
|
get 'attachments/download/:id', to: 'attachments#show'
|
||||||
get 'attachments/download/:id/:filename', to: 'attachments#show'
|
get 'attachments/download/:id/:filename', to: 'attachments#show'
|
||||||
get ':owner/:repo/releases/download/:tag_name/:filename', to: 'version_releases#download'
|
get ':owner/:repo/releases/download/:tag_name/:filename', to: 'version_releases#download', constraints: { repo: /[^\/]+/, filename: /[^\/]+/ }
|
||||||
get 'check_pr_url',to: "settings#check_url"
|
get 'check_pr_url',to: "settings#check_url"
|
||||||
|
|
||||||
# get 'auth/qq/callback', to: 'oauth/qq#create'
|
# get 'auth/qq/callback', to: 'oauth/qq#create'
|
||||||
|
|
Loading…
Reference in New Issue