mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			315 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			315 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package recover
 | 
						|
 | 
						|
import "github.com/iwind/TeaGo"
 | 
						|
 | 
						|
func init() {
 | 
						|
	TeaGo.BeforeStart(func(server *TeaGo.Server) {
 | 
						|
		server.
 | 
						|
			Helper(new(Helper)).
 | 
						|
			Prefix("/recover").
 | 
						|
			Get("", new(IndexAction)).
 | 
						|
			Post("/validateApi", new(ValidateApiAction)).
 | 
						|
			Post("/updateHosts", new(UpdateHostsAction)).
 | 
						|
			EndAll()
 | 
						|
	})
 | 
						|
}
 |