mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
33 lines
959 B
Go
33 lines
959 B
Go
package users
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/users/accesskeys"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
|
"github.com/iwind/TeaGo"
|
|
)
|
|
|
|
func init() {
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
|
server.
|
|
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeUser)).
|
|
Data("teaMenu", "users").
|
|
Prefix("/users").
|
|
Get("", new(IndexAction)).
|
|
GetPost("/createPopup", new(CreatePopupAction)).
|
|
Get("/user", new(UserAction)).
|
|
GetPost("/update", new(UpdateAction)).
|
|
Post("/delete", new(DeleteAction)).
|
|
GetPost("/features", new(FeaturesAction)).
|
|
|
|
// AccessKeys
|
|
Prefix("/users/accessKeys").
|
|
Get("", new(accesskeys.IndexAction)).
|
|
GetPost("/createPopup", new(accesskeys.CreatePopupAction)).
|
|
Post("/delete", new(accesskeys.DeleteAction)).
|
|
Post("/updateIsOn", new(accesskeys.UpdateIsOnAction)).
|
|
|
|
EndAll()
|
|
})
|
|
}
|