mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-10 07:37:26 +02:00
add control give & control take endpoints.
This commit is contained in:
parent
6d27b0a69c
commit
6fbb1a2cc7
2 changed files with 44 additions and 0 deletions
|
@ -50,5 +50,8 @@ func (h *RoomHandler) Route(r chi.Router) {
|
|||
r.Route("/control", func(r chi.Router) {
|
||||
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)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue