From bd7a055a0944a1c5219f21bb080bf658229f49e9 Mon Sep 17 00:00:00 2001 From: lq64 Date: Wed, 10 Dec 2025 15:16:53 +0100 Subject: [PATCH] feat(api): FRO-14 Create Game (#107) Added functionality to create Game so that it creates a game in the Backend Co-authored-by: LQ63 Reviewed-on: https://git.janis-eccarius.de/KnockOutWhist/KnockOutWhist-Web/pulls/107 Reviewed-by: Janis Co-authored-by: lq64 Co-committed-by: lq64 --- knockoutwhistweb/app/controllers/MainMenuController.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/knockoutwhistweb/app/controllers/MainMenuController.scala b/knockoutwhistweb/app/controllers/MainMenuController.scala index a8891ed..ca87f87 100644 --- a/knockoutwhistweb/app/controllers/MainMenuController.scala +++ b/knockoutwhistweb/app/controllers/MainMenuController.scala @@ -44,8 +44,7 @@ class MainMenuController @Inject()( ) Ok(Json.obj( "status" -> "success", - "redirectUrl" -> routes.IngameController.game(gameLobby.id).url, - "content" -> IngameController.returnInnerHTML(gameLobby, gameLobby.logic.getCurrentState, request.user).toString + "gameId" -> gameLobby.id, )) } else { BadRequest(Json.obj(