mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 05:25:15 +01:00 
			
		
		
		
	
							parent
							
								
									bb14c97d40
								
							
						
					
					
						commit
						42072783c9
					
				@ -186,6 +186,10 @@ func runWeb(ctx *cli.Context) error {
 | 
				
			|||||||
	// FIXME: not all routes need go through same middlewares.
 | 
						// FIXME: not all routes need go through same middlewares.
 | 
				
			||||||
	// Especially some AJAX requests, we can reduce middleware number to improve performance.
 | 
						// Especially some AJAX requests, we can reduce middleware number to improve performance.
 | 
				
			||||||
	// Routers.
 | 
						// Routers.
 | 
				
			||||||
 | 
						// for health check
 | 
				
			||||||
 | 
						m.Head("/", func() string {
 | 
				
			||||||
 | 
							return ""
 | 
				
			||||||
 | 
						})
 | 
				
			||||||
	m.Get("/", ignSignIn, routers.Home)
 | 
						m.Get("/", ignSignIn, routers.Home)
 | 
				
			||||||
	m.Group("/explore", func() {
 | 
						m.Group("/explore", func() {
 | 
				
			||||||
		m.Get("", func(ctx *context.Context) {
 | 
							m.Get("", func(ctx *context.Context) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user