}
ctx.Data["CommitsCount"] = ctx.Repo.CommitsCount
})
- m.Get("/attachments/{uuid}", repo.GetAttachment)
+
}, ignSignIn, context.RepoAssignment, context.UnitTypes(), reqRepoReleaseReader)
+ // to maintain compatibility with old attachments
+ m.Group("/{username}/{reponame}", func() {
+ m.Get("/attachments/{uuid}", repo.GetAttachment)
+ }, ignSignIn, context.RepoAssignment, context.UnitTypes())
+
m.Group("/{username}/{reponame}", func() {
m.Post("/topics", repo.TopicsPost)
}, context.RepoAssignment, context.RepoMustNotBeArchived(), reqRepoAdmin)