mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-02 02:42:47 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue