WorkerController.cs 328 B

1234567891011121314151617
  1. using Microsoft.AspNetCore.Mvc;
  2. using static CompServ.CompServConst;
  3. namespace CompServ.Hub
  4. {
  5. [ApiController]
  6. public class HubController : ControllerBase
  7. {
  8. [HttpGet]
  9. [Route("/")]
  10. public async Task<ActionResult> CheckAlive() => await Task.FromResult(Content(AliveMessageHub));
  11. }
  12. }