1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-23 17:07:42 +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

@ -29,6 +29,13 @@ namespace Bit.Admin.Controllers
CurrentVersion = Core.Utilities.CoreHelpers.GetVersion()
});
}
[HttpGet("~/alive")]
[HttpGet("~/now")]
public DateTime Get()
{
return DateTime.UtcNow;
}
public IActionResult Error()
{

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;
}
}
}