mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			657 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			657 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package nodes
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
 | 
						|
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/nodes/ipAddresses"
 | 
						|
	"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
 | 
						|
	"github.com/iwind/TeaGo"
 | 
						|
)
 | 
						|
 | 
						|
func init() {
 | 
						|
	TeaGo.BeforeStart(func(server *TeaGo.Server) {
 | 
						|
		server.
 | 
						|
			Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeNode)).
 | 
						|
			Helper(new(Helper)).
 | 
						|
			Prefix("/nodes").
 | 
						|
			Post("/delete", new(DeleteAction)).
 | 
						|
 | 
						|
			// IP地址
 | 
						|
			GetPost("/ipAddresses/createPopup", new(ipAddresses.CreatePopupAction)).
 | 
						|
			GetPost("/ipAddresses/updatePopup", new(ipAddresses.UpdatePopupAction)).
 | 
						|
 | 
						|
			EndAll()
 | 
						|
	})
 | 
						|
}
 |