1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22:50 -05: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,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);
}
}
}