mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-29 17:07:15 +02:00
REST API control.
This commit is contained in:
parent
eec285cd07
commit
3f4914d260
2 changed files with 60 additions and 0 deletions
|
@ -46,4 +46,9 @@ func (h *RoomHandler) Route(r chi.Router) {
|
|||
r.Get("/", h.ClipboardRead)
|
||||
r.Post("/", h.ClipboardWrite)
|
||||
})
|
||||
|
||||
r.Route("/control", func(r chi.Router) {
|
||||
r.Post("/request", h.ControlRequest)
|
||||
r.Post("/release", h.ControlRelease)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue