diff --git a/WebAPI/Controllers/AdminController.cs b/WebAPI/Controllers/AdminController.cs index f6475d1..81d7446 100644 --- a/WebAPI/Controllers/AdminController.cs +++ b/WebAPI/Controllers/AdminController.cs @@ -105,4 +105,10 @@ public class AdminController : Controller return BadRequest(e.ToString()); } } + + [HttpGet] + [Route("Version")] + public IActionResult GetVersion() { + return Ok(new { version = _configuration["app-version"] }); + } } \ No newline at end of file diff --git a/WebAPI/Helpers/HttpRequests/GetQueue.http b/WebAPI/Helpers/HttpRequests/GetQueue.http index 110921f..4b3be84 100644 --- a/WebAPI/Helpers/HttpRequests/GetQueue.http +++ b/WebAPI/Helpers/HttpRequests/GetQueue.http @@ -1,2 +1,2 @@ ### -GET http://localhost:5400/api/Admin/GetQueue +GET http://localhost:5400/api/Admin/Version diff --git a/WebAPI/appsettings.Development.json b/WebAPI/appsettings.Development.json index b025ae4..64054f9 100644 --- a/WebAPI/appsettings.Development.json +++ b/WebAPI/appsettings.Development.json @@ -1,5 +1,6 @@ { "PONG": "Development", + "app-version": "0.0-dev", "Logging": { "LogLevel": { "Default": "Information", diff --git a/WebAPI/appsettings.json b/WebAPI/appsettings.json index 014013e..b558b8f 100644 --- a/WebAPI/appsettings.json +++ b/WebAPI/appsettings.json @@ -1,5 +1,6 @@ { "PONG": "#{PING}#", + "app-version": "#{buildId}#", "Logging": { "LogLevel": { "Default": "Information",