mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			365 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			365 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package common
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
 | 
						|
	"github.com/iwind/TeaGo"
 | 
						|
)
 | 
						|
 | 
						|
func init() {
 | 
						|
	TeaGo.BeforeStart(func(server *TeaGo.Server) {
 | 
						|
		server.
 | 
						|
			Helper(new(helpers.UserMustAuth)).
 | 
						|
			Prefix("/common").
 | 
						|
			Get("/changedClusters", new(ChangedClustersAction)).
 | 
						|
			Post("/syncClusters", new(SyncClustersAction)).
 | 
						|
			EndAll()
 | 
						|
	})
 | 
						|
}
 |