mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-17 19:17:11 +02:00
REST API keyboard.
This commit is contained in:
parent
db820806a4
commit
ac2fc100b4
2 changed files with 64 additions and 0 deletions
|
@ -60,4 +60,9 @@ func (h *RoomHandler) Route(r chi.Router) {
|
|||
r.Post("/start", h.BoradcastStart)
|
||||
r.Post("/stop", h.BoradcastStop)
|
||||
})
|
||||
|
||||
r.With(auth.HostsOnly).Route("/keyboard", func(r chi.Router) {
|
||||
r.Post("/layout", h.KeyboardLayoutSet)
|
||||
r.Post("/modifiers", h.KeyboardModifiersSet)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue