Aggiunto verb versione x chiamate API REST
This commit is contained in:
@@ -5,7 +5,7 @@ using EgwMultiEngineManager.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NLog;
|
||||
using System.Diagnostics;
|
||||
using ZXing.QrCode.Internal;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Lux.API.Controllers
|
||||
{
|
||||
@@ -128,6 +128,18 @@ namespace Lux.API.Controllers
|
||||
return Ok(retVal);
|
||||
}
|
||||
|
||||
[HttpGet("version")]
|
||||
public string version()
|
||||
{
|
||||
var version = Assembly
|
||||
.GetExecutingAssembly()
|
||||
.GetName()
|
||||
.Version?
|
||||
.ToString() ?? "unknown";
|
||||
|
||||
return version;
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Private Fields
|
||||
@@ -146,10 +158,5 @@ namespace Lux.API.Controllers
|
||||
private ImageCacheService _imgService { get; set; }
|
||||
|
||||
#endregion Private Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user