2020-08-21 12:32:16 +08:00
|
|
|
package log
|
|
|
|
|
|
|
|
|
|
import (
|
2020-12-03 11:03:12 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
2020-08-21 12:32:16 +08:00
|
|
|
"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.
|
2020-12-03 11:03:12 +08:00
|
|
|
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeServer)).
|
2020-08-21 12:32:16 +08:00
|
|
|
Helper(serverutils.NewServerHelper()).
|
|
|
|
|
Prefix("/servers/server/log").
|
2020-10-10 19:22:17 +08:00
|
|
|
GetPost("", new(IndexAction)).
|
2020-10-31 17:44:48 +08:00
|
|
|
GetPost("/today", new(TodayAction)).
|
|
|
|
|
GetPost("/history", new(HistoryAction)).
|
2020-11-02 21:15:25 +08:00
|
|
|
Get("/viewPopup", new(ViewPopupAction)).
|
2020-08-21 12:32:16 +08:00
|
|
|
EndAll()
|
|
|
|
|
})
|
|
|
|
|
}
|