mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-31 09:57:08 +02:00
add broadcast endpoint & broadcast pipeline return error.
This commit is contained in:
parent
6fbb1a2cc7
commit
db820806a4
8 changed files with 124 additions and 15 deletions
|
@ -54,4 +54,10 @@ func (h *RoomHandler) Route(r chi.Router) {
|
|||
r.With(auth.AdminsOnly).Post("/take", h.ControlTake)
|
||||
r.With(auth.AdminsOnly).Post("/give", h.ControlGive)
|
||||
})
|
||||
|
||||
r.With(auth.AdminsOnly).Route("/broadcast", func(r chi.Router) {
|
||||
r.Get("/", h.BroadcastStatus)
|
||||
r.Post("/start", h.BoradcastStart)
|
||||
r.Post("/stop", h.BoradcastStop)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue