Attachment support repository route (#15580)

tokarchuk/v1.17
Lunny Xiao 4 years ago committed by GitHub
parent bee8ce342f
commit 1b3dbdba4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      routers/routes/web.go

@ -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