Files
VORTEX-REC-LEAK/Controllers/NotificationsNegotiate.cs
2026-07-23 18:21:43 -07:00

33 lines
851 B
C#

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using static DeluxeBackend.Enums;
namespace DeluxeBackend.Controllers
{
[Route("Notifications/hub/v1/negotiate")]
[ApiController]
public class NotificationsNegotiate: ControllerBase
{
[HttpGet]
[HttpPost]
[Authorize]
public async Task<IActionResult> Ns()
{
return Ok(new
{
negotiateVersion = 2,
//connectionId = "meow",
//accessToken = "Meow",
availableTransports = new[]
{
new
{
transport = "WebSockets",
transferFormats = new[] { "Text", "Binary" }
}
}
});
}
}
}