Consolidate the ping and status request APIs

This commit is contained in:
Gabe Kangas
2021-06-10 22:07:56 -07:00
parent ba4a4b0b13
commit b96cd2e93e
3 changed files with 12 additions and 24 deletions

View File

@@ -1,13 +0,0 @@
package controllers
import (
"net/http"
"github.com/owncast/owncast/core"
"github.com/owncast/owncast/utils"
)
func Ping(w http.ResponseWriter, r *http.Request) {
id := utils.GenerateClientIDFromRequest(r)
core.SetViewerIdActive(id)
}