23 lines
716 B
C#
23 lines
716 B
C#
// using Bts.DataStreamWebApp.Server;
|
|
|
|
// using Microsoft.AspNetCore.Mvc;
|
|
|
|
// [ApiController]
|
|
// [Route("api/[controller]")]
|
|
// public class ConfigController : ControllerBase {
|
|
// private readonly IConfiguration _configuration;
|
|
|
|
// public ConfigController(IConfiguration configuration) {
|
|
// _configuration = configuration;
|
|
// }
|
|
|
|
// [HttpGet("websocket")]
|
|
// public ActionResult<DataStreamWebSocketConfig> GetWebSocketConfig() {
|
|
// var endpoint = $"{_configuration["Kestrel:Endpoints:Http:Url"]}/ws";
|
|
// var webSocketConfig = new DataStreamWebSocketConfig {
|
|
// Endpoint = endpoint // or Https based on your setup
|
|
// };
|
|
// return Ok(webSocketConfig);
|
|
// }
|
|
// }
|