Not force closing all rooms may be a good idea
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user