Fix wiki raw commit diff/patch view (#16891) (#16893)

pull/16896/head^2
6543 3 years ago committed by GitHub
parent 95d2744020
commit 2fc5b08c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/routes/web.go

@ -912,7 +912,7 @@ func RegisterRoutes(m *web.Route) {
m.Get("/_pages", repo.WikiPages) m.Get("/_pages", repo.WikiPages)
m.Get("/{page}/_revision", repo.WikiRevision) m.Get("/{page}/_revision", repo.WikiRevision)
m.Get("/commit/{sha:[a-f0-9]{7,40}}", repo.SetEditorconfigIfExists, repo.SetDiffViewStyle, repo.SetWhitespaceBehavior, repo.Diff) m.Get("/commit/{sha:[a-f0-9]{7,40}}", repo.SetEditorconfigIfExists, repo.SetDiffViewStyle, repo.SetWhitespaceBehavior, repo.Diff)
m.Get("/commit/{sha:[a-f0-9]{7,40}}.{:patch|diff}", repo.RawDiff) m.Get("/commit/{sha:[a-f0-9]{7,40}}.{ext:patch|diff}", repo.RawDiff)
m.Group("", func() { m.Group("", func() {
m.Combo("/_new").Get(repo.NewWiki). m.Combo("/_new").Get(repo.NewWiki).

Loading…
Cancel
Save