mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			751 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			751 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package dashboard
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
 | 
						|
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/dashboard/boards"
 | 
						|
	"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
 | 
						|
	"github.com/iwind/TeaGo"
 | 
						|
)
 | 
						|
 | 
						|
func init() {
 | 
						|
	TeaGo.BeforeStart(func(server *TeaGo.Server) {
 | 
						|
		server.Prefix("/dashboard").
 | 
						|
			Data("teaMenu", "dashboard").
 | 
						|
			Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeCommon)).
 | 
						|
			GetPost("", new(IndexAction)).
 | 
						|
 | 
						|
			// 看板
 | 
						|
			Prefix("/dashboard/boards").
 | 
						|
			GetPost("", new(boards.IndexAction)).
 | 
						|
			Get("/waf", new(boards.WafAction)).
 | 
						|
			Post("/wafLogs", new(boards.WafLogsAction)).
 | 
						|
			Get("/dns", new(boards.DnsAction)).
 | 
						|
			Get("/user", new(boards.UserAction)).
 | 
						|
			EndAll()
 | 
						|
	})
 | 
						|
}
 |