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:
parent
7928b25796
commit
179543d790
@ -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()
|
||||
{
|
||||
|
17
src/Identity/Controllers/MiscController.cs
Normal file
17
src/Identity/Controllers/MiscController.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user