diff --git a/routers/routes/web.go b/routers/routes/web.go index a8d64b4c447..cedab78434b 100644 --- a/routers/routes/web.go +++ b/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() {