mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-22 17:30:29 +08:00
24 lines
657 B
Go
24 lines
657 B
Go
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
|
|
|
package accesslogs
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/ns/settings/settingutils"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
|
"github.com/iwind/TeaGo"
|
|
)
|
|
|
|
func init() {
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
|
server.
|
|
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeNS)).
|
|
Helper(new(settingutils.Helper)).
|
|
Data("teaMenu", "ns").
|
|
Data("teaSubMenu", "setting").
|
|
Prefix("/ns/settings/accesslogs").
|
|
GetPost("", new(IndexAction)).
|
|
EndAll()
|
|
})
|
|
}
|