diff options
author | Unknwon <u@gogs.io> | 2015-02-22 09:49:25 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-02-22 09:49:25 -0500 |
commit | 059338139ca4a70cb1138dc09039abb5dac0d0f2 (patch) | |
tree | 4b80829314df3b9f7e21b67ccf5fc30146f0c4e4 /cmd | |
parent | c753fdceaf0549aa865cff4e1f42be5d907bbdb1 (diff) | |
download | gitea-059338139ca4a70cb1138dc09039abb5dac0d0f2.tar.gz gitea-059338139ca4a70cb1138dc09039abb5dac0d0f2.zip |
routers: able to migrate repo from local path
- modules/middleware/context.go: add HandleAPI method
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 4b06a882c0..1b692ceb48 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -79,7 +79,7 @@ func checkVersion() { // Check dependency version. checkers := []VerChecker{ {"github.com/Unknwon/macaron", macaron.Version, "0.5.1"}, - {"github.com/macaron-contrib/binding", binding.Version, "0.0.4"}, + {"github.com/macaron-contrib/binding", binding.Version, "0.0.5"}, {"github.com/macaron-contrib/cache", cache.Version, "0.0.7"}, {"github.com/macaron-contrib/csrf", csrf.Version, "0.0.3"}, {"github.com/macaron-contrib/i18n", i18n.Version, "0.0.5"}, @@ -229,7 +229,7 @@ func runWeb(ctx *cli.Context) { }) m.Any("/*", func(ctx *middleware.Context) { - ctx.JSON(404, &base.ApiJsonErr{"Not Found", base.DOC_URL}) + ctx.HandleAPI(404, "Page not found") }) }) }) |