adding health endpoint for k8s

This commit is contained in:
Andy Pack 2024-05-20 17:03:24 +01:00
parent 0d88212233
commit 3832b05308
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

View File

@ -0,0 +1,24 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Selector.Web.Controller
{
[ApiController]
[Route("health")]
public class HealthController : Microsoft.AspNetCore.Mvc.Controller
{
public HealthController()
{
}
[HttpGet]
[AllowAnonymous]
public Task<ActionResult> Health()
{
return Task.FromResult<ActionResult>(Ok());
}
}
}