feat(onvif): 添加通知存储

This commit is contained in:
2024-08-26 15:21:47 +08:00
parent ff5cc66a55
commit 0ef8af021f
4 changed files with 22 additions and 4 deletions

View File

@ -25,6 +25,11 @@ func SetupRoutes(r *gin.Engine) {
subscriptionGroup.POST("/:xaddr", onvif.CreateSubscription)
subscriptionGroup.POST("/:xaddr/callback", onvif.NotifyCallback)
}
notificationGroup := onvifGroup.Group("/notifications")
{
notificationGroup.GET("/", onvif.GetNotifications)
}
}
zabbixGroup := r.Group("/zabbix")