mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 23:30:26 +08:00
23 lines
571 B
Go
23 lines
571 B
Go
|
|
package users
|
||
|
|
|
||
|
|
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.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)).
|
||
|
|
EndAll()
|
||
|
|
})
|
||
|
|
}
|