Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Apr 29, 2017
1 parent 1c2c892 commit c1123b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Api.csproj
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
9 changes: 9 additions & 0 deletions src/Api/Controllers/AliveController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
using System.Reflection;

namespace Bit.Api.Controllers
{
Expand All @@ -18,5 +19,13 @@ public IActionResult Claims()
{
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);
}
}
}

0 comments on commit c1123b1

Please sign in to comment.