mirror of
https://github.com/bitwarden/server.git
synced 2025-01-22 21:51:22 +01:00
version bump
This commit is contained in:
parent
1c2c892bcd
commit
c1123b1959
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user