实现边缘节点下线和由转发服务维护的端口分配机制

This commit is contained in:
2025-05-14 17:45:14 +08:00
parent 2be449e1a7
commit 661616dfc3
3 changed files with 89 additions and 14 deletions

View File

@@ -67,10 +67,12 @@ func ApplyRouters(app *fiber.App) {
proxy := api.Group("/proxy")
proxy.Post("/online", handlers.OnlineProxy)
proxy.Post("/offline", handlers.OfflineProxy)
proxy.Post("/assign", handlers.AssignProxyFwdPort)
// 节点
edge := api.Group("/edge")
edge.Post("/online", handlers.OnlineEdge)
edge.Post("/offline", handlers.OfflineEdge)
// 临时
app.Get("/test", func(c *fiber.Ctx) error {