mirror of
https://github.com/bitwarden/server.git
synced 2026-02-03 15:45:19 +08:00
20 lines
368 B
C#
20 lines
368 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Bit.SeederApi.Controllers;
|
|
|
|
public class InfoController : Controller
|
|
{
|
|
[HttpGet("~/alive")]
|
|
[HttpGet("~/now")]
|
|
public DateTime GetAlive()
|
|
{
|
|
return DateTime.UtcNow;
|
|
}
|
|
|
|
[HttpGet("~/version")]
|
|
public JsonResult GetVersion()
|
|
{
|
|
return Json(AssemblyHelpers.GetVersion());
|
|
}
|
|
}
|