mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-14 07:55:01 +01:00
25 lines
696 B
C#
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);
|
|
}
|
|
}
|
|
}
|