mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 12:20:28 +08:00
24 lines
724 B
Go
24 lines
724 B
Go
package headers
|
|
|
|
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()).
|
|
Prefix("/servers/server/settings/headers").
|
|
Get("", new(IndexAction)).
|
|
GetPost("/createSetPopup", new(CreateSetPopupAction)).
|
|
GetPost("/updateSetPopup", new(UpdateSetPopupAction)).
|
|
GetPost("/createDeletePopup", new(CreateDeletePopupAction)).
|
|
Post("/deleteDeletingHeader", new(DeleteDeletingHeaderAction)).
|
|
Post("/delete", new(DeleteAction)).
|
|
EndAll()
|
|
})
|
|
}
|