diff options
Diffstat (limited to 'routers/routes/web.go')
-rw-r--r-- | routers/routes/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/routes/web.go b/routers/routes/web.go index eb2a9025d0..ebd738de1e 100644 --- a/routers/routes/web.go +++ b/routers/routes/web.go @@ -912,8 +912,8 @@ func RegisterRoutes(m *web.Route) { m.Get("/", repo.Releases) m.Get("/tag/*", repo.SingleRelease) m.Get("/latest", repo.LatestRelease) - m.Get("/attachments/{uuid}", repo.GetAttachment) - }, repo.MustBeNotEmpty, reqRepoReleaseReader, context.RepoRefByType(context.RepoRefTag)) + }, repo.MustBeNotEmpty, reqRepoReleaseReader, context.RepoRefByType(context.RepoRefTag, true)) + m.Get("/releases/attachments/{uuid}", repo.GetAttachment, repo.MustBeNotEmpty, reqRepoReleaseReader) m.Group("/releases", func() { m.Get("/new", repo.NewRelease) m.Post("/new", bindIgnErr(forms.NewReleaseForm{}), repo.NewReleasePost) |