Files
EdgeAdmin/internal/web/actions/default/admins/recipients/tasks/init.go

22 lines
543 B
Go
Raw Normal View History

2021-04-05 20:48:13 +08:00
package tasks
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.AdminModuleCodeAdmin)).
Data("teaMenu", "admins").
Data("teaSubMenu", "recipients").
Prefix("/admins/recipients/tasks").
Get("", new(IndexAction)).
2021-04-05 20:48:13 +08:00
Post("/taskInfo", new(TaskInfoAction)).
Post("/delete", new(DeleteAction)).
2021-04-05 20:48:13 +08:00
EndAll()
})
}