mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 05:00:25 +08:00
23 lines
644 B
Go
23 lines
644 B
Go
package reverseProxy
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/servers/serverutils"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
|
"github.com/iwind/TeaGo"
|
|
)
|
|
|
|
func init() {
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
|
server.
|
|
Helper(helpers.NewUserMustAuth()).
|
|
Helper(serverutils.NewServerHelper()).
|
|
Data("mainTab", "setting").
|
|
Data("secondMenuItem", "reverseProxy").
|
|
Prefix("/servers/server/settings/reverseProxy").
|
|
Get("", new(IndexAction)).
|
|
GetPost("/scheduling", new(SchedulingAction)).
|
|
GetPost("/updateSchedulingPopup", new(UpdateSchedulingPopupAction)).
|
|
EndAll()
|
|
})
|
|
}
|