mirror of
https://github.com/veops/oneterm.git
synced 2025-10-07 08:10:57 +08:00
refactor(backend): modularize web proxy into service layer with complete swagger docs
This commit is contained in:
@@ -254,7 +254,13 @@ func SetupRouter(r *gin.Engine) {
|
||||
// Web proxy management API routes
|
||||
webProxyGroup := v1.Group("/web_proxy")
|
||||
{
|
||||
webProxyGroup.GET("/config/:asset_id", webProxy.GetWebAssetConfig)
|
||||
webProxyGroup.POST("/start", webProxy.StartWebSession)
|
||||
webProxyGroup.GET("/external_redirect", webProxy.HandleExternalRedirect)
|
||||
webProxyGroup.POST("/close", webProxy.CloseWebSession)
|
||||
webProxyGroup.GET("/sessions/:asset_id", webProxy.GetActiveWebSessions)
|
||||
webProxyGroup.POST("/heartbeat", webProxy.UpdateWebSessionHeartbeat)
|
||||
webProxyGroup.POST("/cleanup", webProxy.CleanupWebSession)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user