mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-28 15:37:55 +02:00
do not export REST functions.
This commit is contained in:
parent
1ae6f05c73
commit
ef03f9ec9d
6 changed files with 28 additions and 28 deletions
|
@ -36,33 +36,33 @@ func New(
|
|||
|
||||
func (h *RoomHandler) Route(r chi.Router) {
|
||||
r.With(auth.AdminsOnly).Route("/broadcast", func(r chi.Router) {
|
||||
r.Get("/", h.BroadcastStatus)
|
||||
r.Post("/start", h.BoradcastStart)
|
||||
r.Post("/stop", h.BoradcastStop)
|
||||
r.Get("/", h.broadcastStatus)
|
||||
r.Post("/start", h.boradcastStart)
|
||||
r.Post("/stop", h.boradcastStop)
|
||||
})
|
||||
|
||||
r.With(auth.HostsOnly).Route("/clipboard", func(r chi.Router) {
|
||||
r.Get("/", h.ClipboardRead)
|
||||
r.Post("/", h.ClipboardWrite)
|
||||
r.Get("/", h.clipboardRead)
|
||||
r.Post("/", h.clipboardWrite)
|
||||
})
|
||||
|
||||
r.With(auth.HostsOnly).Route("/keyboard", func(r chi.Router) {
|
||||
r.Post("/layout", h.KeyboardLayoutSet)
|
||||
r.Post("/modifiers", h.KeyboardModifiersSet)
|
||||
r.Post("/layout", h.keyboardLayoutSet)
|
||||
r.Post("/modifiers", h.keyboardModifiersSet)
|
||||
})
|
||||
|
||||
r.Route("/control", func(r chi.Router) {
|
||||
r.Post("/request", h.ControlRequest)
|
||||
r.Post("/release", h.ControlRelease)
|
||||
r.Post("/request", h.controlRequest)
|
||||
r.Post("/release", h.controlRelease)
|
||||
|
||||
r.With(auth.AdminsOnly).Post("/take", h.ControlTake)
|
||||
r.With(auth.AdminsOnly).Post("/give", h.ControlGive)
|
||||
r.With(auth.AdminsOnly).Post("/take", h.controlTake)
|
||||
r.With(auth.AdminsOnly).Post("/give", h.controlGive)
|
||||
})
|
||||
|
||||
r.Route("/screen", func(r chi.Router) {
|
||||
r.Get("/", h.ScreenConfiguration)
|
||||
r.Get("/", h.screenConfiguration)
|
||||
|
||||
r.With(auth.AdminsOnly).Post("/", h.ScreenConfigurationChange)
|
||||
r.With(auth.AdminsOnly).Get("/configurations", h.ScreenConfigurationsList)
|
||||
r.With(auth.AdminsOnly).Post("/", h.screenConfigurationChange)
|
||||
r.With(auth.AdminsOnly).Get("/configurations", h.screenConfigurationsList)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue