adding health endpoint for k8s
This commit is contained in:
parent
0d88212233
commit
3832b05308
24
Selector.Web/Controller/HealthController.cs
Normal file
24
Selector.Web/Controller/HealthController.cs
Normal 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());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user