Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 18:56:11 +01:00

Fix wrong method for profiling routes.

This commit is contained in:
Justin 2014-07-05 17:24:44 +02:00
parent fd5412ec47
commit 10f932b952

View file

@ -9,8 +9,8 @@ import (
)
func RegisterRoutes(r martini.Router) {
r.Get("/debug/pprof/cmdline", pprof.Cmdline)
r.Get("/debug/pprof/profile", pprof.Profile)
r.Get("/debug/pprof/symbol", pprof.Symbol)
r.Get("/debug/pprof/**", pprof.Index)
r.Any("/debug/pprof/cmdline", pprof.Cmdline)
r.Any("/debug/pprof/profile", pprof.Profile)
r.Any("/debug/pprof/symbol", pprof.Symbol)
r.Any("/debug/pprof/**", pprof.Index)
}