Implement session creation

This commit is contained in:
Vojtěch Káně
2021-03-29 20:37:52 +02:00
parent 782f96ebbd
commit a5bc7c6984
10 changed files with 180 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ func main() {
mux := httprouter.New()
mux.GET("/", app.home)
mux.POST("/play/:code", app.play)
mux.POST("/organise/:code", app.play)
mux.POST("/session", app.createSession)
mux.GET("/game/:playerUid", app.game)
mux.POST("/game/:playerUid/rpc/next", app.nextQuestion)
mux.POST("/game/:playerUid/answers/:choiceUid", app.answer)