Add WebUI and ingame route, update Configuration and DefaultConfiguration for UI integration

This commit is contained in:
2025-10-10 13:31:50 +02:00
parent d822d11acc
commit 30fb50c3b8
7 changed files with 33 additions and 28 deletions

View File

@@ -21,14 +21,21 @@ class HomeController @Inject()(val controllerComponents: ControllerComponents) e
* will be called when the application receives a `GET` request with
* a path of `/`.
*/
def index() = {
def index(): Action[AnyContent] = {
if (!initial) {
initial = true
KnockOutWhist.main(new Array[String](_length = 0))
}
Action { implicit request: Request[AnyContent] => {
Ok(views.html.main.render("KnockoutWhist", views.html.index.apply()))
Ok(views.html.main.apply("KnockoutWhist")(views.html.))
}
}
}
def ingame(): Action[AnyContent] = {
Action { implicit request: Request[AnyContent] => {
Ok(views.html.tui.apply())
}
}
}