summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-04-23 23:18:21 +0800
committerGitHub <noreply@github.com>2021-04-23 11:18:21 -0400
commit1b3dbdba4e218a9f2ca58f342a20c8beb53bb28a (patch)
tree054d9109817b7f0b287ddc018775c4ff8dba1025 /routers
parentbee8ce342f3b6f70f6f1d54c3bf2e866f7adbb13 (diff)
downloadgitea-1b3dbdba4e218a9f2ca58f342a20c8beb53bb28a.tar.gz
gitea-1b3dbdba4e218a9f2ca58f342a20c8beb53bb28a.zip
Attachment support repository route (#15580)
Diffstat (limited to 'routers')
-rw-r--r--routers/routes/web.go1
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() {