mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-22 13:37:11 +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
|
@ -15,7 +15,7 @@ type ScreenConfigurationPayload struct {
|
|||
Rate int `json:"rate"`
|
||||
}
|
||||
|
||||
func (h *RoomHandler) ScreenConfiguration(w http.ResponseWriter, r *http.Request) {
|
||||
func (h *RoomHandler) screenConfiguration(w http.ResponseWriter, r *http.Request) {
|
||||
size := h.desktop.GetScreenSize()
|
||||
|
||||
if size == nil {
|
||||
|
@ -30,7 +30,7 @@ func (h *RoomHandler) ScreenConfiguration(w http.ResponseWriter, r *http.Request
|
|||
})
|
||||
}
|
||||
|
||||
func (h *RoomHandler) ScreenConfigurationChange(w http.ResponseWriter, r *http.Request) {
|
||||
func (h *RoomHandler) screenConfigurationChange(w http.ResponseWriter, r *http.Request) {
|
||||
data := &ScreenConfigurationPayload{}
|
||||
if !utils.HttpJsonRequest(w, r, data) {
|
||||
return
|
||||
|
@ -55,7 +55,7 @@ func (h *RoomHandler) ScreenConfigurationChange(w http.ResponseWriter, r *http.R
|
|||
utils.HttpSuccess(w, data)
|
||||
}
|
||||
|
||||
func (h *RoomHandler) ScreenConfigurationsList(w http.ResponseWriter, r *http.Request) {
|
||||
func (h *RoomHandler) screenConfigurationsList(w http.ResponseWriter, r *http.Request) {
|
||||
list := []ScreenConfigurationPayload{}
|
||||
|
||||
ScreenConfigurations := h.desktop.ScreenConfigurations()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue