mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	
		
			
	
	
		
			22 lines
		
	
	
		
			504 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			22 lines
		
	
	
		
			504 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package admins
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
							 | 
						||
| 
								 | 
							
									"github.com/iwind/TeaGo"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func init() {
							 | 
						||
| 
								 | 
							
									TeaGo.BeforeStart(func(server *TeaGo.Server) {
							 | 
						||
| 
								 | 
							
										server.
							 | 
						||
| 
								 | 
							
											Helper(helpers.NewUserMustAuth()).
							 | 
						||
| 
								 | 
							
											Data("teaMenu", "admins").
							 | 
						||
| 
								 | 
							
											Prefix("/admins").
							 | 
						||
| 
								 | 
							
											Get("", new(IndexAction)).
							 | 
						||
| 
								 | 
							
											GetPost("/createPopup", new(CreatePopupAction)).
							 | 
						||
| 
								 | 
							
											GetPost("/updatePopup", new(UpdatePopupAction)).
							 | 
						||
| 
								 | 
							
											Post("/delete", new(DeleteAction)).
							 | 
						||
| 
								 | 
							
											Post("/updateOn", new(UpdateOnAction)).
							 | 
						||
| 
								 | 
							
											EndAll()
							 | 
						||
| 
								 | 
							
									})
							 | 
						||
| 
								 | 
							
								}
							 |