mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-15 13:00:25 +08:00
39 lines
1.0 KiB
Go
39 lines
1.0 KiB
Go
package dns
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/dns/domains"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/dns/providers"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
|
"github.com/iwind/TeaGo"
|
|
)
|
|
|
|
func init() {
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
|
server.
|
|
Helper(new(helpers.UserMustAuth)).
|
|
Helper(new(Helper)).
|
|
Prefix("/dns").
|
|
Get("", new(IndexAction)).
|
|
|
|
// 服务商
|
|
Prefix("/dns/providers").
|
|
Data("teaSubMenu", "provider").
|
|
Get("", new(providers.IndexAction)).
|
|
GetPost("/createPopup", new(providers.CreatePopupAction)).
|
|
GetPost("/updatePopup", new(providers.UpdatePopupAction)).
|
|
Post("/delete", new(providers.DeleteAction)).
|
|
Get("/provider", new(providers.ProviderAction)).
|
|
EndData().
|
|
|
|
// 域名
|
|
Prefix("/dns/domains").
|
|
Data("teaSubMenu", "provider").
|
|
GetPost("/createPopup", new(domains.CreatePopupAction)).
|
|
GetPost("/updatePopup", new(domains.UpdatePopupAction)).
|
|
Post("/delete", new(domains.DeleteAction)).
|
|
EndData().
|
|
|
|
EndAll()
|
|
})
|
|
}
|