live: add ws endpoint to push into pipeline (#41534)

This commit is contained in:
Alexander Emelin
2021-11-15 12:43:18 +03:00
committed by GitHub
parent f3f441f4ec
commit 1700b2c2f3
9 changed files with 334 additions and 213 deletions

View File

@ -435,7 +435,7 @@ func (hs *HTTPServer) registerRoutes() {
if hs.Cfg.FeatureToggles["live-pipeline"] {
// POST Live data to be processed according to channel rules.
liveRoute.Post("/push/:streamId/:path", hs.LivePushGateway.HandlePath)
liveRoute.Post("/pipeline/push/*", hs.LivePushGateway.HandlePipelinePush)
liveRoute.Post("/pipeline-convert-test", routing.Wrap(hs.Live.HandlePipelineConvertTestHTTP), reqOrgAdmin)
liveRoute.Get("/pipeline-entities", routing.Wrap(hs.Live.HandlePipelineEntitiesListHTTP), reqOrgAdmin)
liveRoute.Get("/channel-rules", routing.Wrap(hs.Live.HandleChannelRulesListHTTP), reqOrgAdmin)