modelRT/router/monitor.go

16 lines
398 B
Go
Raw Normal View History

2025-11-03 17:35:03 +08:00
// Package router provides router config
package router
import (
"modelRT/handler"
"github.com/gin-gonic/gin"
)
// registerMonitorRoutes define func of register monitordata routes
func registerMonitorRoutes(rg *gin.RouterGroup) {
g := rg.Group("/monitors/")
g.POST("data/subscriptions", handler.RealTimeSubHandler)
g.GET("data/realtime/stream/:clientID", handler.PullRealTimeDataHandler)
2025-11-03 17:35:03 +08:00
}