mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	routers: able to migrate repo from local path
- modules/middleware/context.go: add HandleAPI method
This commit is contained in:
		@@ -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")
 | 
			
		||||
			})
 | 
			
		||||
		})
 | 
			
		||||
	})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user