summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-10-08 20:36:07 -0400
committerUnknwon <u@gogs.io>2015-10-08 20:36:07 -0400
commitaff49b1c9eaa33f7c530275f2695d6d96699ec5d (patch)
treec3720601db2e005e57032feb42deac7e347ac713 /cmd/web.go
parentb1941f1da18b8c6ca046771c21f21ba793765518 (diff)
downloadgitea-aff49b1c9eaa33f7c530275f2695d6d96699ec5d.tar.gz
gitea-aff49b1c9eaa33f7c530275f2695d6d96699ec5d.zip
unified API error response
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 0c0eea3f81..30fd4b7957 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -226,7 +226,7 @@ func runWeb(ctx *cli.Context) {
m.Group("", func() {
m.Post("/migrate", bindIgnErr(auth.MigrateRepoForm{}), v1.MigrateRepo)
- m.Delete("/:owner/:reponame", v1.RemoveRepo)
+ m.Delete("/:username/:reponame", v1.DeleteRepo)
}, middleware.ApiReqToken())
m.Group("/:username/:reponame", func() {
@@ -239,7 +239,7 @@ func runWeb(ctx *cli.Context) {
})
m.Any("/*", func(ctx *middleware.Context) {
- ctx.HandleAPI(404, "Page not found")
+ ctx.Error(404)
})
})
}, ignSignIn)