mirror of
https://github.com/bitwarden/server.git
synced 2025-07-13 05:38:25 -05:00
Standardize '/version' endpoint on all services (#1755)
This commit is contained in:
@ -39,13 +39,6 @@ namespace Bit.Icons.Controllers
|
||||
_iconsSettings = iconsSettings;
|
||||
}
|
||||
|
||||
[HttpGet("~/alive")]
|
||||
[HttpGet("~/now")]
|
||||
public DateTime GetAlive()
|
||||
{
|
||||
return DateTime.UtcNow;
|
||||
}
|
||||
|
||||
[HttpGet("~/config")]
|
||||
public IActionResult GetConfig()
|
||||
{
|
||||
|
22
src/Icons/Controllers/InfoController.cs
Normal file
22
src/Icons/Controllers/InfoController.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Bit.Core.Utilities;
|
||||
|
||||
namespace Bit.Icons.Controllers
|
||||
{
|
||||
public class InfoController : Controller
|
||||
{
|
||||
[HttpGet("~/alive")]
|
||||
[HttpGet("~/now")]
|
||||
public DateTime GetAlive()
|
||||
{
|
||||
return DateTime.UtcNow;
|
||||
}
|
||||
|
||||
[HttpGet("~/version")]
|
||||
public JsonResult GetVersion()
|
||||
{
|
||||
return Json(CoreHelpers.GetVersion());
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user