feat: BAC-27 Implemented endpoint which returns information about the current state #103

Merged
lq64 merged 8 commits from feat/BAC-27 into main 2025-12-10 11:37:36 +01:00
4 changed files with 102 additions and 4 deletions
Showing only changes of commit 078667fc3f - Show all commits

View File

@@ -1,15 +1,13 @@
package controllers
import auth.{AuthAction, AuthenticatedRequest}
import de.knockoutwhist.control.GameState.{FinishedMatch, InGame, Lobby, MainMenu, SelectTrump, TieBreak}
import de.knockoutwhist.player.AbstractPlayer
import auth.AuthAction
import logic.PodManager
import logic.game.GameLobby
import logic.user.SessionManager
import model.users.User
import play.api.libs.json.{JsValue, Json}
import play.api.mvc.{Action, *}
import util.{WebUIUtils, WebsocketEventMapper}
import play.api.mvc.*
import util.WebsocketEventMapper
import javax.inject.Inject

View File

@@ -27,4 +27,8 @@ GET /logout controllers.UserController.logout()
GET /game/:id controllers.IngameController.game(id: String)
# Websocket
GET /websocket controllers.WebsocketController.socket()
GET /websocket controllers.WebsocketController.socket()
# Status
GET /status controllers.StatusController.requestStatus()
GET /status/:gameId controllers.StatusController.game(gameId: String)