fix(api): Fixed a bug where the game would reload on game start #81

Merged
Janis merged 1 commits from fix/redirect-on-game-start-78 into main 2025-11-22 21:36:24 +01:00
2 changed files with 3 additions and 2 deletions

View File

@@ -82,7 +82,8 @@ class IngameController @Inject() (
if (result.isSuccess) {
Ok(Json.obj(
"status" -> "success",
"redirectUrl" -> routes.IngameController.game(gameId).url
"redirectUrl" -> routes.IngameController.game(gameId).url,
"content" -> returnInnerHTML(game.get, request.user).toString()
))
} else {
val throwable = result.failed.get