Implement creating new games

This commit is contained in:
Vojtěch Káně
2021-04-27 16:37:48 +02:00
parent ee91f3d7f8
commit 5f9ac3d4a9
7 changed files with 360 additions and 2 deletions

View File

@@ -108,6 +108,9 @@ func main() {
mux.POST("/game/:playerUid/rpc/next", app.nextQuestion)
mux.POST("/game/:playerUid/answers/:choiceUid", app.answer)
mux.GET("/results/:playerUid", app.resultsGeneral)
mux.GET("/template", app.downloadTemplate)
mux.POST("/game", app.createGame)
mux.GET("/quiz/:gameUid", app.showGame)
mux.GET("/ws/:playerUid", app.processWebSocket)