mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Move code from module to service (#24287)
The code should not be in `modules/` but `services/`. Reference: https://github.com/go-gitea/gitea/pull/24257#discussion_r1174578230
This commit is contained in:
		@@ -689,7 +689,7 @@ func Routes(ctx gocontext.Context) *web.Route {
 | 
			
		||||
	// Get user from session if logged in.
 | 
			
		||||
	m.Use(auth.APIAuth(group))
 | 
			
		||||
 | 
			
		||||
	m.Use(context.ToggleAPI(&context.ToggleOptions{
 | 
			
		||||
	m.Use(auth.VerifyAuthWithOptionsAPI(&auth.VerifyOptions{
 | 
			
		||||
		SignInRequired: setting.Service.RequireSignInView,
 | 
			
		||||
	}))
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user