调整界面

This commit is contained in:
GoEdgeLab
2020-10-10 20:28:36 +08:00
parent 8d24063e80
commit 444ca7535e
35 changed files with 276 additions and 49 deletions

View File

@@ -2,6 +2,7 @@ package api
import (
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/api/node"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/settings/settingutils"
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
"github.com/iwind/TeaGo"
)
@@ -11,9 +12,10 @@ func init() {
server.
Helper(helpers.NewUserMustAuth()).
Helper(NewHelper()).
Helper(settingutils.NewHelper("api")).
Prefix("/api").
Get("", new(IndexAction)).
GetPost("/node/create", new(node.CreateAction)).
GetPost("/node/createPopup", new(node.CreatePopupAction)).
EndAll()
})
}