mirror of
https://git.recroomarchive.org/RecRoomArchive/RRAC.git
synced 2026-09-08 06:31:25 -07:00
26 lines
789 B
C#
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);
|
|
}
|
|
}
|
|
} |