Added API at /api/v1/status/info to get branch and version information #2331

pull/2478/head
Jamie Rees 6 years ago
parent 880aea1221
commit 0221254d4b

@ -30,6 +30,7 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Ombi.Core.Settings;
using Ombi.Helpers;
using Ombi.Settings.Settings.Models;
namespace Ombi.Controllers
@ -57,6 +58,18 @@ namespace Ombi.Controllers
}
/// <summary>
/// Returns information about this ombi instance
/// </summary>
/// <returns></returns>
[AllowAnonymous]
[HttpGet("info")]
public string GetInfo()
{
return AssemblyHelper.GetRuntimeVersion();
}
/// <summary>
/// Checks to see if we have run through the wizard
/// </summary>

Loading…
Cancel
Save