diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-07-04 14:28:46 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-07-04 14:28:46 -0400 |
commit | ae7f3eed78bf79eb3dfd49d4a2837fe4913ef89c (patch) | |
tree | 6fbedb5f9e385379c0f82023991564b4b16d57d2 /cmd | |
parent | 0820b24f0bea6a0ce2f9c035a581bcf829ad0e13 (diff) | |
parent | a481672c5cec1efe8d4856b393e98775c55ad8bc (diff) |
Merge pull request #272 from nuss-justin/dev
Add 'pprof' tag for enabling debugging
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 3 |
1 files changed, 3 insertions, 0 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) |