API: Add health check endpoint

This commit is contained in:
Dennis Reimann
2020-04-16 15:39:08 +02:00
parent 0a1a4fd3b5
commit 3bd5c3e1b5
4 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace BTCPayServer.Controllers.GreenField
{
[ApiController]
public class HealthController : ControllerBase
{
[AllowAnonymous]
[HttpGet("~/api/v1/health")]
public ActionResult GetHealth()
{
return Ok();
}
}
}