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:
parent
7928b25796
commit
179543d790
@ -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
|
||||
|
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