2020-07-22 22:19:39 +08:00
|
|
|
package nodes
|
|
|
|
|
|
|
|
|
|
import (
|
2020-08-21 21:09:42 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/nodes/ipAddresses"
|
2020-07-22 22:19:39 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
|
|
|
|
"github.com/iwind/TeaGo"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
|
|
|
|
server.
|
|
|
|
|
Helper(new(helpers.UserMustAuth)).
|
|
|
|
|
Helper(new(Helper)).
|
|
|
|
|
Prefix("/nodes").
|
2020-07-30 22:41:35 +08:00
|
|
|
Post("/delete", new(DeleteAction)).
|
2020-07-29 19:34:54 +08:00
|
|
|
|
2020-08-21 21:09:42 +08:00
|
|
|
// IP地址
|
|
|
|
|
GetPost("/ipAddresses/createPopup", new(ipAddresses.CreatePopupAction)).
|
|
|
|
|
GetPost("/ipAddresses/updatePopup", new(ipAddresses.UpdatePopupAction)).
|
|
|
|
|
|
2020-07-22 22:19:39 +08:00
|
|
|
EndAll()
|
|
|
|
|
})
|
|
|
|
|
}
|