mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-10 01:10:29 +08:00
阶段性提交
This commit is contained in:
20
internal/web/actions/default/api/node/init.go
Normal file
20
internal/web/actions/default/api/node/init.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package node
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
||||
"github.com/iwind/TeaGo"
|
||||
)
|
||||
|
||||
func init() {
|
||||
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
||||
server.
|
||||
Helper(helpers.NewUserMustAuth()).
|
||||
Helper(NewHelper()).
|
||||
Prefix("/api/node").
|
||||
|
||||
// 节点相关
|
||||
GetPost("/settings", new(SettingsAction)).
|
||||
|
||||
EndAll()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user