|
|
@ -702,6 +702,7 @@ func RegisterRoutes(m *web.Route) { |
|
|
|
m.Group("/milestone", func() { |
|
|
|
m.Group("/milestone", func() { |
|
|
|
m.Get("/{id}", repo.MilestoneIssuesAndPulls) |
|
|
|
m.Get("/{id}", repo.MilestoneIssuesAndPulls) |
|
|
|
}, reqRepoIssuesOrPullsReader, context.RepoRef()) |
|
|
|
}, reqRepoIssuesOrPullsReader, context.RepoRef()) |
|
|
|
|
|
|
|
m.Get("/compare", repo.MustBeNotEmpty, reqRepoCodeReader, repo.SetEditorconfigIfExists, ignSignIn, repo.SetDiffViewStyle, repo.SetWhitespaceBehavior, repo.CompareDiff) |
|
|
|
m.Combo("/compare/*", repo.MustBeNotEmpty, reqRepoCodeReader, repo.SetEditorconfigIfExists). |
|
|
|
m.Combo("/compare/*", repo.MustBeNotEmpty, reqRepoCodeReader, repo.SetEditorconfigIfExists). |
|
|
|
Get(ignSignIn, repo.SetDiffViewStyle, repo.SetWhitespaceBehavior, repo.CompareDiff). |
|
|
|
Get(ignSignIn, repo.SetDiffViewStyle, repo.SetWhitespaceBehavior, repo.CompareDiff). |
|
|
|
Post(reqSignIn, context.RepoMustNotBeArchived(), reqRepoPullsReader, repo.MustAllowPulls, bindIgnErr(forms.CreateIssueForm{}), repo.SetWhitespaceBehavior, repo.CompareAndPullRequestPost) |
|
|
|
Post(reqSignIn, context.RepoMustNotBeArchived(), reqRepoPullsReader, repo.MustAllowPulls, bindIgnErr(forms.CreateIssueForm{}), repo.SetWhitespaceBehavior, repo.CompareAndPullRequestPost) |
|
|
|