mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
23 lines
469 B
C#
23 lines
469 B
C#
using System;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Bit.Core.Utilities;
|
|
|
|
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());
|
|
}
|
|
}
|
|
}
|