Support adding streams on the fly

This commit is contained in:
Alexey Khit
2022-08-18 23:53:24 +03:00
parent 6dceed64ed
commit 7c23625a24
5 changed files with 46 additions and 7 deletions

View File

@@ -83,7 +83,7 @@ func fileServerHandlder(w http.ResponseWriter, r *http.Request) {
func statsHandler(w http.ResponseWriter, _ *http.Request) {
v := map[string]interface{}{
"streams": streams.Streams,
"streams": streams.All(),
}
data, err := json.Marshal(v)
if err != nil {