mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-12 03:10:26 +08:00
增加API节点安装配置界面
This commit is contained in:
@@ -10,7 +10,7 @@ func init() {
|
||||
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
||||
server.
|
||||
Helper(helpers.NewUserMustAuth()).
|
||||
Helper(settingutils.NewHelper("api")).
|
||||
Helper(settingutils.NewHelper("apiNodes")).
|
||||
Prefix("/api/node").
|
||||
|
||||
// 这里不受Helper的约束
|
||||
@@ -19,8 +19,9 @@ func init() {
|
||||
|
||||
// 节点相关
|
||||
Helper(NewHelper()).
|
||||
GetPost("/settings", new(SettingsAction)).
|
||||
|
||||
Get("", new(IndexAction)).
|
||||
GetPost("/update", new(UpdateAction)).
|
||||
Get("/install", new(InstallAction)).
|
||||
|
||||
EndAll()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user