diff --git a/src/Api/Api.csproj b/src/Api/Api.csproj index cf6fb1af53..e11dea7346 100644 --- a/src/Api/Api.csproj +++ b/src/Api/Api.csproj @@ -1,7 +1,7 @@  - 1.3.4 + 1.4.0 net461 true Api diff --git a/src/Api/Controllers/AliveController.cs b/src/Api/Controllers/AliveController.cs index 5dce9f8f8a..e86bec4637 100644 --- a/src/Api/Controllers/AliveController.cs +++ b/src/Api/Controllers/AliveController.cs @@ -1,6 +1,7 @@ using System; using Microsoft.AspNetCore.Mvc; using System.Linq; +using System.Reflection; namespace Bit.Api.Controllers { @@ -18,5 +19,13 @@ namespace Bit.Api.Controllers { return new JsonResult(User?.Claims?.Select(c => new { c.Type, c.Value })); } + + [HttpGet("version")] + public IActionResult Version() + { + var version = Assembly.GetEntryAssembly() + .GetCustomAttribute().InformationalVersion; + return new JsonResult(version); + } } }