33 lines
851 B
C#
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" }
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|