forked from forgejo/forgejo
Added URL mapping for Release attachments like on github.com (#1707)
This commit is contained in:
parent
dd006db5a7
commit
d3dc07f282
5 changed files with 71 additions and 9 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue