mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-10 09:20:25 +08:00
30 lines
866 B
Go
30 lines
866 B
Go
package waf
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/servers/components/componentutils"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
|
"github.com/iwind/TeaGo"
|
|
)
|
|
|
|
func init() {
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
|
server.
|
|
Helper(helpers.NewUserMustAuth()).
|
|
Helper(NewHelper()).
|
|
Helper(componentutils.NewComponentHelper()).
|
|
Prefix("/servers/components/waf").
|
|
Get("", new(IndexAction)).
|
|
GetPost("/createPopup", new(CreatePopupAction)).
|
|
Post("/delete", new(DeleteAction)).
|
|
Get("/policy", new(PolicyAction)).
|
|
Get("/groups", new(GroupsAction)).
|
|
Get("/sets", new(SetsAction)).
|
|
Get("/log", new(LogAction)).
|
|
GetPost("/update", new(UpdateAction)).
|
|
GetPost("/test", new(TestAction)).
|
|
GetPost("/export", new(ExportAction)).
|
|
GetPost("/import", new(ImportAction)).
|
|
EndAll()
|
|
})
|
|
}
|