|
@@ -15,9 +15,6 @@ func InitRouter(r *gin.RouterGroup) {
|
|
|
r.GET("nginx/status", Status)
|
|
|
// Get detailed Nginx status information, including connection count, process information, etc. (Issue #850)
|
|
|
r.GET("nginx/detail_status", GetDetailStatus)
|
|
|
- // Use SSE to push detailed Nginx status information
|
|
|
- // Use WebSocket to push detailed Nginx status information
|
|
|
- r.GET("nginx/detail_status/ws", StreamDetailStatusWS)
|
|
|
// Get stub_status module status
|
|
|
r.GET("nginx/stub_status", CheckStubStatus)
|
|
|
// Enable or disable stub_status module
|
|
@@ -31,3 +28,7 @@ func InitRouter(r *gin.RouterGroup) {
|
|
|
|
|
|
r.GET("nginx/modules", GetModules)
|
|
|
}
|
|
|
+
|
|
|
+func InitWebSocketRouter(r *gin.RouterGroup) {
|
|
|
+ r.GET("nginx/detail_status/ws", StreamDetailStatusWS)
|
|
|
+}
|