feat(api): FRO-14 Create Game

Added functionality to create Game so that it creates a game in the Backend
This commit is contained in:
LQ63
2025-12-10 14:57:37 +01:00
parent e2a2b56174
commit ed596b72bb

View File

@@ -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(