1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-22 21:51:22 +01:00

version bump

This commit is contained in:
Kyle Spearrin 2017-04-28 21:06:00 -04:00
parent 1c2c892bcd
commit c1123b1959
2 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<VersionPrefix>1.3.4</VersionPrefix>
<VersionPrefix>1.4.0</VersionPrefix>
<TargetFramework>net461</TargetFramework>
<PreserveCompilationContext>true</PreserveCompilationContext>
<AssemblyName>Api</AssemblyName>

View File

@ -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<AssemblyInformationalVersionAttribute>().InformationalVersion;
return new JsonResult(version);
}
}
}