|
|
@ -822,9 +822,14 @@ func RegisterRoutes(m *web.Route) { |
|
|
|
} |
|
|
|
} |
|
|
|
ctx.Data["CommitsCount"] = ctx.Repo.CommitsCount |
|
|
|
ctx.Data["CommitsCount"] = ctx.Repo.CommitsCount |
|
|
|
}) |
|
|
|
}) |
|
|
|
m.Get("/attachments/{uuid}", repo.GetAttachment) |
|
|
|
|
|
|
|
}, ignSignIn, context.RepoAssignment, context.UnitTypes(), reqRepoReleaseReader) |
|
|
|
}, 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.Group("/{username}/{reponame}", func() { |
|
|
|
m.Post("/topics", repo.TopicsPost) |
|
|
|
m.Post("/topics", repo.TopicsPost) |
|
|
|
}, context.RepoAssignment, context.RepoMustNotBeArchived(), reqRepoAdmin) |
|
|
|
}, context.RepoAssignment, context.RepoMustNotBeArchived(), reqRepoAdmin) |
|
|
|