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

Reviewed-on: #81
Co-authored-by: Janis <janis.e.20@gmx.de>
Co-committed-by: Janis <janis.e.20@gmx.de>
This commit is contained in:
2025-11-22 21:36:23 +01:00
committed by Janis
parent 2bc50664e0
commit 9738a04b7a
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