mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-17 19:17:11 +02:00
xclip multiple clipboard content types.
This commit is contained in:
parent
4602f5f6cf
commit
2d11b4fa56
6 changed files with 112 additions and 18 deletions
|
@ -38,8 +38,11 @@ func (h *RoomHandler) Route(r chi.Router) {
|
|||
})
|
||||
|
||||
r.With(auth.HostsOnly).Route("/clipboard", func(r chi.Router) {
|
||||
r.Get("/", h.clipboardRead)
|
||||
r.Post("/", h.clipboardWrite)
|
||||
r.Get("/targets", h.clipboardGetTargets)
|
||||
r.Get("/text", h.clipboardGetPlainText)
|
||||
r.Post("/text", h.clipboardSetPlainText)
|
||||
r.Get("/html", h.clipboardGetRichText)
|
||||
r.Post("/html", h.clipboardSetRichText)
|
||||
})
|
||||
|
||||
r.Route("/keyboard", func(r chi.Router) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue