mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	
		
			
	
	
		
			23 lines
		
	
	
		
			622 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			622 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package cluster
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
							 | 
						||
| 
								 | 
							
									"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/ns/clusters/clusterutils"
							 | 
						||
| 
								 | 
							
									"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
							 | 
						||
| 
								 | 
							
									"github.com/iwind/TeaGo"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func init() {
							 | 
						||
| 
								 | 
							
									TeaGo.BeforeStart(func(server *TeaGo.Server) {
							 | 
						||
| 
								 | 
							
										server.
							 | 
						||
| 
								 | 
							
											Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeNS)).
							 | 
						||
| 
								 | 
							
											Helper(new(clusterutils.ClusterHelper)).
							 | 
						||
| 
								 | 
							
											Data("teaMenu", "ns").
							 | 
						||
| 
								 | 
							
											Data("teaSubMenu", "cluster").
							 | 
						||
| 
								 | 
							
											Prefix("/ns/clusters/cluster").
							 | 
						||
| 
								 | 
							
											Get("", new(IndexAction)).
							 | 
						||
| 
								 | 
							
											GetPost("/delete", new(DeleteAction)).
							 | 
						||
| 
								 | 
							
											EndAll()
							 | 
						||
| 
								 | 
							
									})
							 | 
						||
| 
								 | 
							
								}
							 |