Attachment support repository route (#15580)

This commit is contained in:
Lunny Xiao 2021-04-23 23:18:21 +08:00 committed by GitHub
parent bee8ce342f
commit 1b3dbdba4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -929,6 +929,7 @@ func RegisterRoutes(m *web.Route) {
}
ctx.Data["CommitsCount"] = ctx.Repo.CommitsCount
})
m.Get("/attachments/{uuid}", repo.GetAttachment)
}, ignSignIn, context.RepoAssignment, context.UnitTypes(), reqRepoReleaseReader)
m.Group("/{username}/{reponame}", func() {