2021-01-27 22:59:46 +08:00
|
|
|
package tasks
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
|
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/clusterutils"
|
|
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
|
|
|
|
"github.com/iwind/TeaGo"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
|
|
|
|
server.
|
|
|
|
|
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeDNS)).
|
|
|
|
|
Helper(clusterutils.NewClustersHelper()).
|
|
|
|
|
Prefix("/dns/tasks").
|
|
|
|
|
GetPost("/listPopup", new(ListPopupAction)).
|
|
|
|
|
Post("/check", new(CheckAction)).
|
|
|
|
|
Post("/delete", new(DeleteAction)).
|
2023-07-02 17:29:00 +08:00
|
|
|
Post("/deleteAll", new(DeleteAllAction)).
|
2021-01-27 22:59:46 +08:00
|
|
|
EndAll()
|
|
|
|
|
})
|
|
|
|
|
}
|