Not force closing all rooms may be a good idea

This commit is contained in:
2023-03-22 20:50:37 +01:00
parent 6baefc875b
commit 8debac4f70
4 changed files with 65 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
using MauMau_Server.Websockets;
using System.Text.Json;
using MauMau_Server.Websockets;
using Microsoft.AspNetCore.Mvc;
namespace MauMau_Server.Controllers;
@@ -49,7 +50,7 @@ public class RoomController : ControllerBase
public IActionResult Post()
{
var id = _roomManager.CreateRoom();
return Ok(id);
return Ok(JsonSerializer.Serialize(id));
}
[HttpDelete]