mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Remove redundant "RouteMethods" method (#26024)
The `RouteMethods` is mainly an alias for `Methods` with different argument order. Remove it to keep the "route.go" code clear
This commit is contained in:
		@@ -634,7 +634,7 @@ func ContainerRoutes() *web.Route {
 | 
			
		||||
		)
 | 
			
		||||
 | 
			
		||||
		// Manual mapping of routes because {image} can contain slashes which chi does not support
 | 
			
		||||
		r.RouteMethods("/*", "HEAD,GET,POST,PUT,PATCH,DELETE", func(ctx *context.Context) {
 | 
			
		||||
		r.Methods("HEAD,GET,POST,PUT,PATCH,DELETE", "/*", func(ctx *context.Context) {
 | 
			
		||||
			path := ctx.Params("*")
 | 
			
		||||
			isHead := ctx.Req.Method == "HEAD"
 | 
			
		||||
			isGet := ctx.Req.Method == "GET"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user