Accept answers

This commit is contained in:
Vojtěch Káně
2021-02-07 18:29:36 +01:00
parent 753b164c58
commit 4fc9aa50d1
5 changed files with 104 additions and 3 deletions

View File

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