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

@ -10,7 +10,7 @@ type ClipboardPayload struct {
Text string `json:"text"`
}
func (h *RoomHandler) ClipboardRead(w http.ResponseWriter, r *http.Request) {
func (h *RoomHandler) clipboardRead(w http.ResponseWriter, r *http.Request) {
// TODO: error check?
text := h.desktop.ReadClipboard()
@ -19,7 +19,7 @@ func (h *RoomHandler) ClipboardRead(w http.ResponseWriter, r *http.Request) {
})
}
func (h *RoomHandler) ClipboardWrite(w http.ResponseWriter, r *http.Request) {
func (h *RoomHandler) clipboardWrite(w http.ResponseWriter, r *http.Request) {
data := &ClipboardPayload{}
if !utils.HttpJsonRequest(w, r, data) {
return