mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-02 22:51:34 -06:00
Add room paused state (#163)
* add room_Paused from cniu6 * fix "OpenAPi.yml" and api-request * remove unpaused event and change start event to unpause as well. * update openapi bindings. * do not wait for ready when unpausing container. * fix room create. * add paused state to Lobby. * fix roomRecreate. --------- Co-authored-by: zerohh <zerohh666@163.com> Co-authored-by: Miroslav Šedivý <sedivy.miro@gmail.com>
This commit is contained in:
@@ -58,6 +58,7 @@ func (manager *ApiManagerCtx) Mount(r chi.Router) {
|
||||
r.Post("/start", manager.roomGenericAction(manager.rooms.Start))
|
||||
r.Post("/stop", manager.roomGenericAction(manager.rooms.Stop))
|
||||
r.Post("/restart", manager.roomGenericAction(manager.rooms.Restart))
|
||||
r.Post("/pause", manager.roomGenericAction(manager.rooms.Pause))
|
||||
r.Post("/recreate", manager.roomRecreate)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user