mirror of
https://github.com/bitwarden/server.git
synced 2026-02-08 18:03:11 +08:00
* Revert "Add git blame entry (#2226)" This reverts commit239286737d. * Revert "Turn on file scoped namespaces (#2225)" This reverts commit34fb4cca2a.
22 lines
447 B
C#
22 lines
447 B
C#
using Bit.Core.Utilities;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Bit.Identity.Controllers
|
|
{
|
|
public class InfoController : Controller
|
|
{
|
|
[HttpGet("~/alive")]
|
|
[HttpGet("~/now")]
|
|
public DateTime GetAlive()
|
|
{
|
|
return DateTime.UtcNow;
|
|
}
|
|
|
|
[HttpGet("~/version")]
|
|
public JsonResult GetVersion()
|
|
{
|
|
return Json(CoreHelpers.GetVersion());
|
|
}
|
|
}
|
|
}
|