mirror of
https://github.com/bitwarden/server
synced 2026-01-02 08:33:48 +00:00
* Improve swagger OperationIDs: Part 1 * Fix tests and fmt * Improve docs and add more tests * Fmt * Improve Swagger OperationIDs for Auth * Fix review feedback * Use generic getcustomattributes * Format * replace swaggerexclude by split+obsolete * Format * Some remaining excludes
27 lines
533 B
C#
27 lines
533 B
C#
using Bit.Core.Utilities;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Bit.Identity.Controllers;
|
|
|
|
public class InfoController : Controller
|
|
{
|
|
[HttpGet("~/alive")]
|
|
public DateTime GetAlive()
|
|
{
|
|
return DateTime.UtcNow;
|
|
}
|
|
|
|
[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());
|
|
}
|
|
}
|