feat: turn generate api
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user