mirror of
https://github.com/go-gitea/gitea
synced 2025-07-12 13:37:20 +00:00
Added URL mapping for Release attachments like on github.com (#1707)
This commit is contained in:
committed by
techknowlogick
parent
dd006db5a7
commit
d3dc07f282
@ -475,6 +475,9 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
}, context.RepoIDAssignment(), context.UnitTypes(), reqRepoCodeReader)
|
||||
}, reqSignIn)
|
||||
|
||||
// ***** Release Attachment Download without Signin
|
||||
m.Get("/:username/:reponame/releases/download/:vTag/:fileName", ignSignIn, context.RepoAssignment(), repo.MustBeNotBare, repo.RedirectDownload)
|
||||
|
||||
m.Group("/:username/:reponame", func() {
|
||||
m.Group("/settings", func() {
|
||||
m.Combo("").Get(repo.Settings).
|
||||
|
Reference in New Issue
Block a user