diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-04-23 23:18:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 11:18:21 -0400 |
commit | 1b3dbdba4e218a9f2ca58f342a20c8beb53bb28a (patch) | |
tree | 054d9109817b7f0b287ddc018775c4ff8dba1025 /routers | |
parent | bee8ce342f3b6f70f6f1d54c3bf2e866f7adbb13 (diff) | |
download | gitea-1b3dbdba4e218a9f2ca58f342a20c8beb53bb28a.tar.gz gitea-1b3dbdba4e218a9f2ca58f342a20c8beb53bb28a.zip |
Attachment support repository route (#15580)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/routes/web.go | 1 |
1 files changed, 1 insertions, 0 deletions
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() { |