2020-09-13 20:37:07 +08:00
|
|
|
package log
|
|
|
|
|
|
|
|
|
|
import (
|
2020-12-03 11:03:12 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
2020-09-13 20:37:07 +08:00
|
|
|
"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.AdminModuleCodeLog)).
|
2020-09-13 20:37:07 +08:00
|
|
|
Helper(new(Helper)).
|
|
|
|
|
Prefix("/log").
|
|
|
|
|
Get("", new(IndexAction)).
|
2020-11-20 17:08:10 +08:00
|
|
|
Get("/exportExcel", new(ExportExcelAction)).
|
2020-12-02 20:31:42 +08:00
|
|
|
Post("/delete", new(DeleteAction)).
|
|
|
|
|
GetPost("/clean", new(CleanAction)).
|
|
|
|
|
GetPost("/settings", new(SettingsAction)).
|
2020-09-13 20:37:07 +08:00
|
|
|
|
|
|
|
|
EndAll()
|
|
|
|
|
})
|
|
|
|
|
}
|