Add remaining project files
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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" }
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user