Files
RRAC/RecRoomArchive/Controllers/API/GameSessions/V2/GameSessionsController.cs
T
2026-02-27 19:30:49 -08:00

26 lines
789 B
C#

using Microsoft.AspNetCore.Mvc;
using RecRoomArchive.Models.API.GameSessions;
using System.Text.Json;
namespace RecRoomArchive.Controllers.API.GameSessions.V2
{
[Route("api/[controller]/v2")]
[ApiController]
public class GameSessionsController : ControllerBase
{
[HttpPost(template: "joinRandom")]
public async Task<ActionResult<JoinGameSessionResponse>> JoinRandomGameSession([FromBody] JoinRandomGameSessionRequest request)
{
Console.WriteLine(JsonSerializer.Serialize(request));
var session = new JoinGameSessionResponse()
{
GameSession = new GameSession()
};
Console.WriteLine(JsonSerializer.Serialize(session));
return Ok(session);
}
}
}