summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-07-06 18:25:07 -0400
committerUnknown <joe2010xtmf@163.com>2014-07-06 18:25:07 -0400
commit7ffdabb28f65b9e4414cd19c0c1f1a400b16b1f3 (patch)
tree86b6d5e3c6fb71452bf6db68af7987d149805a16 /cmd
parent9b014d05e4c656d023e57d61af370bc8d8f20216 (diff)
downloadgitea-7ffdabb28f65b9e4414cd19c0c1f1a400b16b1f3.tar.gz
gitea-7ffdabb28f65b9e4414cd19c0c1f1a400b16b1f3.zip
Move debug router location
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 3ee38f76c4..5f9c168d88 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -26,7 +26,6 @@ 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"
@@ -185,6 +184,7 @@ func runWeb(*cli.Context) {
if martini.Env == martini.Dev {
m.Get("/template/**", dev.TemplatePreview)
+ dev.RegisterDebugRoutes(m)
}
reqTrueOwner := middleware.RequireTrueOwner()
@@ -206,8 +206,6 @@ 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)