Files
EpinelPS/EpinelPS/Controllers/LobbyApiController.cs
2025-05-03 12:29:22 -04:00

25 lines
696 B
C#

using EpinelPS.LobbyServer;
using Microsoft.AspNetCore.Mvc;
using System.Diagnostics;
using EpinelPS.Utils;
namespace EpinelPS.Controllers
{
[Route("v1")]
[ApiController]
public class LobbyApiController : ControllerBase
{
[HttpPost]
[Route("{**all}", Order = int.MaxValue)]
[Consumes("application/octet-stream+protobuf")]
public async Task CatchAll(string all)
{
Stopwatch st = Stopwatch.StartNew();
await LobbyHandler.DispatchSingle(HttpContext);
st.Stop();
Logging.WriteLine($"POST {HttpContext.Request.Path.Value}: {HttpContext.Response.StatusCode}", LogType.Info);
}
}
}