From a7b277f084f8e6a8f4845a8dbe50e58e9f179813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=ABl=20Mugnier?= Date: Wed, 25 Nov 2020 18:43:00 +0100 Subject: [PATCH] New - Ajout d'un endpoint de health --- .../Controllers/HealthController.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Sheaft.Identity/Controllers/HealthController.cs diff --git a/Sheaft.Identity/Controllers/HealthController.cs b/Sheaft.Identity/Controllers/HealthController.cs new file mode 100644 index 0000000..c14db6c --- /dev/null +++ b/Sheaft.Identity/Controllers/HealthController.cs @@ -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"); + } + } +}