Browse Source

Enable CORS on /status

pull/5/head
Gabe Kangas 5 years ago
parent
commit
cd53e108f3
  1. 2
      main.go

2
main.go

@ -72,6 +72,8 @@ func enableCors(w *http.ResponseWriter) { @@ -72,6 +72,8 @@ func enableCors(w *http.ResponseWriter) {
}
func getStatus(w http.ResponseWriter, r *http.Request) {
enableCors(&w)
status := Status{
Online: stats.IsStreamConnected(),
ViewerCount: stats.GetViewerCount(),

Loading…
Cancel
Save