Implement switching to next question

This commit is contained in:
Vojtěch Káně
2021-02-06 21:17:31 +01:00
parent de49bcd4b5
commit fdc080a250
7 changed files with 130 additions and 13 deletions

View File

@@ -68,6 +68,7 @@ func main() {
mux.POST("/play/:code", app.play)
mux.POST("/organise/:code", app.play)
mux.GET("/game/:playerUid", app.game)
mux.POST("/game/:playerUid/rpc/next", app.nextQuestion)
mux.GET("/ws/:playerUid", app.processWebSocket)