From: Lunny Xiao Date: Fri, 23 Apr 2021 15:18:21 +0000 (+0800) Subject: Attachment support repository route (#15580) X-Git-Tag: v1.15.0-rc1~411 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1b3dbdba4e218a9f2ca58f342a20c8beb53bb28a;p=gitea.git Attachment support repository route (#15580) --- diff --git a/routers/routes/web.go b/routers/routes/web.go index a8d64b4c44..cedab78434 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() {