From 7ffdabb28f65b9e4414cd19c0c1f1a400b16b1f3 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 6 Jul 2014 18:25:07 -0400 Subject: Move debug router location --- routers/debug/debug.go | 16 ---------------- routers/debug/ignored.go | 11 ----------- 2 files changed, 27 deletions(-) delete mode 100644 routers/debug/debug.go delete mode 100644 routers/debug/ignored.go (limited to 'routers/debug') diff --git a/routers/debug/debug.go b/routers/debug/debug.go deleted file mode 100644 index f61e7d2e..00000000 --- a/routers/debug/debug.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build pprof - -package debug - -import ( - "net/http/pprof" - - "github.com/go-martini/martini" -) - -func RegisterRoutes(r martini.Router) { - 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) -} diff --git a/routers/debug/ignored.go b/routers/debug/ignored.go deleted file mode 100644 index 4ec49964..00000000 --- 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 -} -- cgit v1.2.3