1
0
mirror of https://github.com/bitwarden/server synced 2026-01-07 11:03:37 +00:00

health checks for docker

This commit is contained in:
Kyle Spearrin
2019-07-26 11:59:42 -04:00
parent d9d2dea784
commit f78b212aa8
10 changed files with 49 additions and 2 deletions

View File

@@ -32,6 +32,14 @@ namespace Bit.Events.Controllers
_cipherRepository = cipherRepository;
}
[HttpGet("~/alive")]
[HttpGet("~/now")]
[AllowAnonymous]
public DateTime GetAlive()
{
return DateTime.UtcNow;
}
[HttpPost]
public async Task<IActionResult> Post([FromBody]IEnumerable<EventModel> model)
{