feat: turn generate api

This commit is contained in:
IliaDenisov
2026-02-12 14:27:56 +03:00
parent 67f0fdef61
commit 87291d2760
16 changed files with 192 additions and 51 deletions
+2 -4
View File
@@ -18,12 +18,10 @@ func InitHandler(c *gin.Context, executor CommandExecutor) {
races[i] = init.Races[i].Name
}
uuid, err := executor.GenerateGame(races)
s, err := executor.GenerateGame(races)
if errorResponded(c, err) {
return
}
c.JSON(http.StatusCreated, rest.InitResponse{
UUID: uuid,
})
c.JSON(http.StatusCreated, s)
}