mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-24 22:47:06 +02:00
do not export REST functions.
This commit is contained in:
parent
1ae6f05c73
commit
ef03f9ec9d
6 changed files with 28 additions and 28 deletions
|
@ -13,14 +13,14 @@ type BroadcastStatusPayload struct {
|
|||
IsActive bool `json:"is_active"`
|
||||
}
|
||||
|
||||
func (h *RoomHandler) BroadcastStatus(w http.ResponseWriter, r *http.Request) {
|
||||
func (h *RoomHandler) broadcastStatus(w http.ResponseWriter, r *http.Request) {
|
||||
utils.HttpSuccess(w, BroadcastStatusPayload{
|
||||
IsActive: h.capture.BroadcastEnabled(),
|
||||
URL: h.capture.BroadcastUrl(),
|
||||
})
|
||||
}
|
||||
|
||||
func (h *RoomHandler) BoradcastStart(w http.ResponseWriter, r *http.Request) {
|
||||
func (h *RoomHandler) boradcastStart(w http.ResponseWriter, r *http.Request) {
|
||||
data := &BroadcastStatusPayload{}
|
||||
if !utils.HttpJsonRequest(w, r, data) {
|
||||
return
|
||||
|
@ -51,7 +51,7 @@ func (h *RoomHandler) BoradcastStart(w http.ResponseWriter, r *http.Request) {
|
|||
utils.HttpSuccess(w)
|
||||
}
|
||||
|
||||
func (h *RoomHandler) BoradcastStop(w http.ResponseWriter, r *http.Request) {
|
||||
func (h *RoomHandler) boradcastStop(w http.ResponseWriter, r *http.Request) {
|
||||
if !h.capture.BroadcastEnabled() {
|
||||
utils.HttpBadRequest(w, "Server is not broadcasting.")
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue