From c1123b1959dcf4436ad49103cc80347bbaa293d7 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 28 Apr 2017 21:06:00 -0400 Subject: [PATCH] version bump --- src/Api/Api.csproj | 2 +- src/Api/Controllers/AliveController.cs | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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); + } } }