mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Fix #464
This commit is contained in:
		
							
								
								
									
										10
									
								
								cmd/web.go
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								cmd/web.go
									
									
									
									
									
								
							@@ -124,7 +124,7 @@ func runWeb(*cli.Context) {
 | 
			
		||||
 | 
			
		||||
	// Routers.
 | 
			
		||||
	m.Get("/", ignSignIn, routers.Home)
 | 
			
		||||
	m.Get("/explore", routers.Explore)
 | 
			
		||||
	m.Get("/explore", ignSignIn, routers.Explore)
 | 
			
		||||
	m.Get("/install", bindIgnErr(auth.InstallForm{}), routers.Install)
 | 
			
		||||
	m.Post("/install", bindIgnErr(auth.InstallForm{}), routers.InstallPost)
 | 
			
		||||
	m.Group("", func(r *macaron.Router) {
 | 
			
		||||
@@ -355,11 +355,9 @@ func runWeb(*cli.Context) {
 | 
			
		||||
	}, ignSignIn, middleware.RepoAssignment(true, true))
 | 
			
		||||
 | 
			
		||||
	m.Group("/:username", func(r *macaron.Router) {
 | 
			
		||||
		r.Get("/:reponame", middleware.RepoAssignment(true, true, true), repo.Home)
 | 
			
		||||
		m.Group("/:reponame", func(r *macaron.Router) {
 | 
			
		||||
			r.Any("/*", repo.Http)
 | 
			
		||||
		})
 | 
			
		||||
	}, ignSignInAndCsrf)
 | 
			
		||||
		r.Get("/:reponame", ignSignIn, middleware.RepoAssignment(true, true, true), repo.Home)
 | 
			
		||||
		r.Any("/:reponame/*", ignSignInAndCsrf, repo.Http)
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	// Not found handler.
 | 
			
		||||
	m.NotFound(routers.NotFound)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user