package clusters import ( "github.com/TeaOSLab/EdgeUser/internal/web/helpers" "github.com/iwind/TeaGo" ) func init() { TeaGo.BeforeStart(func(server *TeaGo.Server) { server. Helper(helpers.NewUserMustAuth("")). Data("teaMenu", "ns"). Data("teaSubMenu", "route"). Prefix("/ns/routes"). Get("", new(IndexAction)). Get("/route", new(RouteAction)). GetPost("/createPopup", new(CreatePopupAction)). GetPost("/updatePopup", new(UpdatePopupAction)). Post("/delete", new(DeleteAction)). Post("/sort", new(SortAction)). Post("/options", new(OptionsAction)). Get("/internal", new(InternalAction)). EndAll() }) }