Files
server/src/Identity/Controllers/InfoController.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
533 B
C#
Raw Normal View History

using Bit.Core.Utilities;
using Microsoft.AspNetCore.Mvc;
namespace Bit.Identity.Controllers;
2022-08-29 16:06:55 -04:00
public class InfoController : Controller
{
[HttpGet("~/alive")]
public DateTime GetAlive()
{
return DateTime.UtcNow;
}
2021-12-16 15:35:09 +01:00
[HttpGet("~/now")]
[Obsolete("This endpoint is deprecated. Use GET /alive instead.")]
public DateTime GetNow()
{
return GetAlive();
}
[HttpGet("~/version")]
public JsonResult GetVersion()
{
return Json(AssemblyHelpers.GetVersion());
}
}