mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
22 lines
492 B
Go
22 lines
492 B
Go
package admins
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
|
"github.com/iwind/TeaGo"
|
|
)
|
|
|
|
func init() {
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
|
server.
|
|
Helper(helpers.NewUserMustAuth()).
|
|
Data("teaMenu", "admins").
|
|
Data("teaModule", "admin").
|
|
Prefix("/admins").
|
|
Get("", new(IndexAction)).
|
|
GetPost("/createPopup", new(CreatePopupAction)).
|
|
GetPost("/updatePopup", new(UpdatePopupAction)).
|
|
Post("/delete", new(DeleteAction)).
|
|
EndAll()
|
|
})
|
|
}
|