Files
waf-platform/EdgeUser/internal/web/actions/default/httpdns/sandbox/init.go
2026-02-28 18:55:33 +08:00

20 lines
399 B
Go

package sandbox
import (
"github.com/TeaOSLab/EdgeUser/internal/web/helpers"
"github.com/iwind/TeaGo"
)
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.
Helper(helpers.NewUserMustAuth("")).
Data("teaMenu", "httpdns").
Data("teaSubMenu", "sandbox").
Prefix("/httpdns/sandbox").
Get("", new(IndexAction)).
Post("/test", new(TestAction)).
EndAll()
})
}