REST API control.

This commit is contained in:
Miroslav Šedivý 2020-11-16 22:48:20 +01:00
parent eec285cd07
commit 3f4914d260
2 changed files with 60 additions and 0 deletions

View file

@ -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)
})
}