mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-01 18:33:04 +02:00
fix control give for users.
This commit is contained in:
parent
610457a9d7
commit
15591287cf
3 changed files with 10 additions and 2 deletions
|
@ -95,7 +95,7 @@ func (h *RoomHandler) Route(r types.Router) {
|
|||
r.Post("/release", h.controlRelease)
|
||||
|
||||
r.With(auth.AdminsOnly).Post("/take", h.controlTake)
|
||||
r.With(auth.AdminsOnly).Post("/give/{sessionId}", h.controlGive)
|
||||
r.With(auth.HostsOrAdminsOnly).Post("/give/{sessionId}", h.controlGive)
|
||||
r.With(auth.AdminsOnly).Post("/reset", h.controlReset)
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue