mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-14 20:30:25 +08:00
26 lines
693 B
Go
26 lines
693 B
Go
|
|
package clusters
|
||
|
|
|
||
|
|
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.AdminModuleCodeNS)).
|
||
|
|
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)).
|
||
|
|
EndAll()
|
||
|
|
})
|
||
|
|
}
|