feat: Add database configuration and update routing for game creation

This commit is contained in:
2026-01-20 09:11:49 +01:00
parent af88f5c559
commit 709a833b4b
98 changed files with 41 additions and 4101 deletions

View File

@@ -1,19 +1,4 @@
# Routes
# This file defines all application routes (Higher priority routes first)
# https://www.playframework.com/documentation/latest/ScalaRouting
# ~~~~
# For the javascript routing
GET /assets/js/routes controllers.JavaScriptRoutingController.javascriptRoutes()
# Primary routes
GET / controllers.MainMenuController.index()
GET /assets/*file controllers.Assets.versioned(path="/public", file: Asset)
# Main menu routes
GET /mainmenu controllers.MainMenuController.mainMenu()
GET /rules controllers.MainMenuController.rules()
GET /navSPA/:pType controllers.MainMenuController.navSPA(pType)
# Create game rounds
POST /createGame controllers.MainMenuController.createGame()
POST /joinGame/:gameId controllers.MainMenuController.joinGame(gameId: String)
@@ -29,9 +14,6 @@ GET /auth/:provider/callback controllers.OpenIDController.callback(provi
GET /select-username controllers.OpenIDController.selectUsername()
POST /submit-username controllers.OpenIDController.submitUsername()
# In-game routes
GET /game/:id controllers.IngameController.game(id: String)
# Websocket
GET /websocket controllers.WebsocketController.socket()