2020-08-21 21:09:42 +08:00
|
|
|
package cache
|
|
|
|
|
|
|
|
|
|
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/cache").
|
2020-09-20 16:28:16 +08:00
|
|
|
GetPost("", new(IndexAction)).
|
2020-10-04 20:38:27 +08:00
|
|
|
GetPost("/createPopup", new(CreatePopupAction)).
|
2020-08-21 21:09:42 +08:00
|
|
|
EndAll()
|
|
|
|
|
})
|
|
|
|
|
}
|