Add 'pprof' tag for enabling debugging
This commit is contained in:
parent
0820b24f0b
commit
a481672c5c
4 changed files with 31 additions and 1 deletions
|
@ -26,6 +26,7 @@ import (
|
|||
"github.com/gogits/gogs/routers"
|
||||
"github.com/gogits/gogs/routers/admin"
|
||||
"github.com/gogits/gogs/routers/api/v1"
|
||||
"github.com/gogits/gogs/routers/debug"
|
||||
"github.com/gogits/gogs/routers/dev"
|
||||
"github.com/gogits/gogs/routers/org"
|
||||
"github.com/gogits/gogs/routers/repo"
|
||||
|
@ -205,6 +206,8 @@ func runWeb(*cli.Context) {
|
|||
r.Post("/:org/settings/delete", org.DeletePost)
|
||||
}, reqSignIn)
|
||||
|
||||
debug.RegisterRoutes(m)
|
||||
|
||||
m.Group("/:username/:reponame", func(r martini.Router) {
|
||||
r.Get("/settings", repo.Setting)
|
||||
r.Post("/settings", bindIgnErr(auth.RepoSettingForm{}), repo.SettingPost)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue