Adding Health controller (#1480)
* Adding Health controller - Added: Added API endpoint for a health check to streamline docker healthy status. * review comment fixes
This commit is contained in:
parent
4899ed3194
commit
851c777054
1 changed files with 17 additions and 0 deletions
17
API/Controllers/HealthController.cs
Normal file
17
API/Controllers/HealthController.cs
Normal file
|
@ -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");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue