2022-06-29 19:46:41 -04:00
|
|
|
|
using Bit.Core.Utilities;
|
2021-12-09 15:45:45 -05:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
2022-08-29 15:53:48 -04:00
|
|
|
|
namespace Bit.Identity.Controllers
|
2021-12-09 15:45:45 -05:00
|
|
|
|
{
|
2022-08-29 15:53:48 -04:00
|
|
|
|
public class InfoController : Controller
|
2021-12-09 15:45:45 -05:00
|
|
|
|
{
|
2022-08-29 15:53:48 -04:00
|
|
|
|
[HttpGet("~/alive")]
|
|
|
|
|
|
[HttpGet("~/now")]
|
|
|
|
|
|
public DateTime GetAlive()
|
|
|
|
|
|
{
|
|
|
|
|
|
return DateTime.UtcNow;
|
|
|
|
|
|
}
|
2021-12-16 15:35:09 +01:00
|
|
|
|
|
2022-08-29 15:53:48 -04:00
|
|
|
|
[HttpGet("~/version")]
|
|
|
|
|
|
public JsonResult GetVersion()
|
|
|
|
|
|
{
|
|
|
|
|
|
return Json(CoreHelpers.GetVersion());
|
|
|
|
|
|
}
|
2021-12-09 15:45:45 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|