mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-03 08:50:13 +02:00
port new API back to refactor.
This commit is contained in:
parent
9559edf4d4
commit
507fce7862
8 changed files with 53 additions and 45 deletions
|
@ -26,7 +26,7 @@ func (a *ClipboardData) Render(w http.ResponseWriter, r *http.Request) error {
|
|||
|
||||
func (h *RoomHandler) ClipboardRead(w http.ResponseWriter, r *http.Request) {
|
||||
// TODO: error check?
|
||||
text := h.remote.ReadClipboard()
|
||||
text := h.desktop.ReadClipboard()
|
||||
|
||||
render.JSON(w, r, ClipboardData{
|
||||
Text: text,
|
||||
|
@ -41,7 +41,7 @@ func (h *RoomHandler) ClipboardWrite(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
// TODO: error check?
|
||||
h.remote.WriteClipboard(data.Text)
|
||||
h.desktop.WriteClipboard(data.Text)
|
||||
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue