Replace admin broadcaster with status api

This commit is contained in:
Gabe Kangas
2020-11-05 18:29:16 -08:00
parent 133745efd7
commit 856961ad2d
6 changed files with 55 additions and 58 deletions

View File

@@ -17,11 +17,3 @@ func GetStatus(w http.ResponseWriter, r *http.Request) {
json.NewEncoder(w).Encode(status)
}
//GetStatus gets the status of the server
func GetAdminStatus(w http.ResponseWriter, r *http.Request) {
status := core.GetStatus()
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(status)
}