mirror of
https://git.recroomarchive.org/RecRoomArchive/RRAC.git
synced 2026-09-08 14:41:25 -07:00
More changes...
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user