1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-24 17:17:40 +01:00

Add 'alive' endpoint to Admin and Identity services (#1505)

* Add 'alive' endpoint to Admin and Identity services

* Move 'alive' endpoint for Admin to Home Controller
This commit is contained in:
Vince Grassia 2021-08-10 15:29:13 -04:00 committed by GitHub
parent 7928b25796
commit 179543d790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -30,6 +30,13 @@ namespace Bit.Admin.Controllers
});
}
[HttpGet("~/alive")]
[HttpGet("~/now")]
public DateTime Get()
{
return DateTime.UtcNow;
}
public IActionResult Error()
{
return View(new ErrorViewModel

View File

@ -0,0 +1,17 @@
using System;
using Microsoft.AspNetCore.Mvc;
namespace Bit.Identity.Controllers
{
public class MiscController : Controller
{
public MiscController() { }
[HttpGet("~/alive")]
[HttpGet("~/now")]
public DateTime Get()
{
return DateTime.UtcNow;
}
}
}