Controller

The path for game session controller is : /game-sessions

📌 Endpoints:

Method

Endpoint

Description

POST

/create

Creates a new game session.

POST

/join

Allows a user to join an existing game session.

POST

/start

Marks a game session as started.

POST

/leave

Leave game session.

GET

/room-id/{roomId}

Retrieves a game session by its room ID.

GET

/my-sessions

Fetches game sessions associated with the authenticated user.

GET

/game/{gameId}

Retrieves game sessions for a specific game.

POST

/game/result

Handles game session result events from external game services.

Last updated