Attachment support repository route (#15580)

mj-v1.18.3
Lunny Xiao 3 years ago committed by GitHub
parent bee8ce342f
commit 1b3dbdba4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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() {

Loading…
Cancel
Save