summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/debug/ignored.go11
-rw-r--r--routers/dev/debug.go (renamed from routers/debug/debug.go)8
2 files changed, 5 insertions, 14 deletions
diff --git a/routers/debug/ignored.go b/routers/debug/ignored.go
deleted file mode 100644
index 4ec49964b7..0000000000
--- a/routers/debug/ignored.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// +build !pprof
-
-package debug
-
-import (
- "github.com/go-martini/martini"
-)
-
-func RegisterRoutes(r martini.Router) {
- // do nothing
-}
diff --git a/routers/debug/debug.go b/routers/dev/debug.go
index f61e7d2eeb..62022146ad 100644
--- a/routers/debug/debug.go
+++ b/routers/dev/debug.go
@@ -1,6 +1,8 @@
-// +build pprof
+// Copyright 2014 The Gogs Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
-package debug
+package dev
import (
"net/http/pprof"
@@ -8,7 +10,7 @@ import (
"github.com/go-martini/martini"
)
-func RegisterRoutes(r martini.Router) {
+func RegisterDebugRoutes(r martini.Router) {
r.Any("/debug/pprof/cmdline", pprof.Cmdline)
r.Any("/debug/pprof/profile", pprof.Profile)
r.Any("/debug/pprof/symbol", pprof.Symbol)