mirror of
https://github.com/owncast/owncast.git
synced 2024-11-29 11:39:08 +03:00
14 lines
243 B
Go
14 lines
243 B
Go
|
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)
|
||
|
}
|