mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 17:34:11 -05:00
Fix wrong method for profiling routes.
This commit is contained in:
parent
fd5412ec47
commit
10f932b952
1 changed files with 4 additions and 4 deletions
|
@ -9,8 +9,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func RegisterRoutes(r martini.Router) {
|
func RegisterRoutes(r martini.Router) {
|
||||||
r.Get("/debug/pprof/cmdline", pprof.Cmdline)
|
r.Any("/debug/pprof/cmdline", pprof.Cmdline)
|
||||||
r.Get("/debug/pprof/profile", pprof.Profile)
|
r.Any("/debug/pprof/profile", pprof.Profile)
|
||||||
r.Get("/debug/pprof/symbol", pprof.Symbol)
|
r.Any("/debug/pprof/symbol", pprof.Symbol)
|
||||||
r.Get("/debug/pprof/**", pprof.Index)
|
r.Any("/debug/pprof/**", pprof.Index)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue