mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	
		
			
	
	
		
			20 lines
		
	
	
		
			444 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
		
			444 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package logs
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
							 | 
						||
| 
								 | 
							
									"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)).
							 | 
						||
| 
								 | 
							
											Data("teaMenu", "clusters").
							 | 
						||
| 
								 | 
							
											Data("teaSubMenu", "log").
							 | 
						||
| 
								 | 
							
											Prefix("/clusters/logs").
							 | 
						||
| 
								 | 
							
											Get("", new(IndexAction)).
							 | 
						||
| 
								 | 
							
											EndAll()
							 | 
						||
| 
								 | 
							
									})
							 | 
						||
| 
								 | 
							
								}
							 |