mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-05 22:30:28 +08:00
35 lines
1.0 KiB
Go
35 lines
1.0 KiB
Go
package cache
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
|
"github.com/iwind/TeaGo"
|
|
)
|
|
|
|
func init() {
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
|
server.
|
|
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeServer)).
|
|
Helper(NewHelper()).
|
|
Data("teaMenu", "servers").
|
|
Data("teaSubMenu", "cache").
|
|
Prefix("/servers/components/cache").
|
|
Get("", new(IndexAction)).
|
|
GetPost("/createPopup", new(CreatePopupAction)).
|
|
Get("/policy", new(PolicyAction)).
|
|
GetPost("/update", new(UpdateAction)).
|
|
GetPost("/clean", new(CleanAction)).
|
|
GetPost("/preheat", new(PreheatAction)).
|
|
GetPost("/purge", new(PurgeAction)).
|
|
GetPost("/stat", new(StatAction)).
|
|
GetPost("/test", new(TestAction)).
|
|
Post("/delete", new(DeleteAction)).
|
|
Post("/testRead", new(TestReadAction)).
|
|
Post("/testWrite", new(TestWriteAction)).
|
|
Get("/selectPopup", new(SelectPopupAction)).
|
|
Post("/count", new(CountAction)).
|
|
|
|
EndAll()
|
|
})
|
|
}
|