From 851c777054af52f00e7e89a4fedce88298341eaf Mon Sep 17 00:00:00 2001 From: Robbie Davis Date: Thu, 25 Aug 2022 20:31:41 -0400 Subject: [PATCH] Adding Health controller (#1480) * Adding Health controller - Added: Added API endpoint for a health check to streamline docker healthy status. * review comment fixes --- API/Controllers/HealthController.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 API/Controllers/HealthController.cs diff --git a/API/Controllers/HealthController.cs b/API/Controllers/HealthController.cs new file mode 100644 index 000000000..8d588fb44 --- /dev/null +++ b/API/Controllers/HealthController.cs @@ -0,0 +1,17 @@ +using System; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; + +namespace API.Controllers; + +[AllowAnonymous] +public class HealthController : BaseApiController +{ + + [HttpGet()] + public ActionResult GetHealth() + { + return Ok("Ok"); + } +}