mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
version api and re-route other misc apis
This commit is contained in:
20
src/Core/Models/Api/Response/VersionResponseModel.cs
Normal file
20
src/Core/Models/Api/Response/VersionResponseModel.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Bit.Core.Models.Api
|
||||
{
|
||||
public class VersionResponseModel : ResponseModel
|
||||
{
|
||||
public VersionResponseModel()
|
||||
: base("version")
|
||||
{
|
||||
Version = Assembly.GetEntryAssembly()
|
||||
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
|
||||
.InformationalVersion;
|
||||
VersionInt = Convert.ToInt32(Version.Replace(".", string.Empty));
|
||||
}
|
||||
|
||||
public string Version { get; set; }
|
||||
public int VersionInt { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user