Skip to content

Commit

Permalink
New - Ajout d'un endpoint de health
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmugnier committed Nov 25, 2020
1 parent fa402ef commit a7b277f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Sheaft.Identity/Controllers/HealthController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Sheaft.Identity.Controllers
{
[AllowAnonymous]
public class HealthController : Controller
{
public IActionResult Livez()
{
return Ok("OK");
}

public IActionResult Readyz()
{
return Ok("OK");
}
}
}

0 comments on commit a7b277f

Please sign in to comment.