do not export REST functions.

This commit is contained in:
Miroslav Šedivý 2020-11-18 22:35:50 +01:00
parent 1ae6f05c73
commit ef03f9ec9d
6 changed files with 28 additions and 28 deletions

View file

@ -16,7 +16,7 @@ type KeyboardModifiersData struct {
ScrollLock *bool `json:"scrollock"`
}
func (h *RoomHandler) KeyboardLayoutSet(w http.ResponseWriter, r *http.Request) {
func (h *RoomHandler) keyboardLayoutSet(w http.ResponseWriter, r *http.Request) {
data := &KeyboardLayoutData{}
if !utils.HttpJsonRequest(w, r, data) {
return
@ -27,7 +27,7 @@ func (h *RoomHandler) KeyboardLayoutSet(w http.ResponseWriter, r *http.Request)
utils.HttpSuccess(w)
}
func (h *RoomHandler) KeyboardModifiersSet(w http.ResponseWriter, r *http.Request) {
func (h *RoomHandler) keyboardModifiersSet(w http.ResponseWriter, r *http.Request) {
data := &KeyboardModifiersData{}
if !utils.HttpJsonRequest(w, r, data) {
return