From a481672c5cec1efe8d4856b393e98775c55ad8bc Mon Sep 17 00:00:00 2001 From: Justin Nuß Date: Fri, 4 Jul 2014 11:41:43 +0200 Subject: Add 'pprof' tag for enabling debugging --- cmd/web.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd/web.go') diff --git a/cmd/web.go b/cmd/web.go index 2f552d8667..0515bcee30 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -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) -- cgit v1.2.3