GetAPIVersion
This commit is contained in:
@@ -105,4 +105,10 @@ public class AdminController : Controller
|
|||||||
return BadRequest(e.ToString());
|
return BadRequest(e.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
|
[Route("Version")]
|
||||||
|
public IActionResult GetVersion() {
|
||||||
|
return Ok(new { version = _configuration["app-version"] });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
###
|
###
|
||||||
GET http://localhost:5400/api/Admin/GetQueue
|
GET http://localhost:5400/api/Admin/Version
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"PONG": "Development",
|
"PONG": "Development",
|
||||||
|
"app-version": "0.0-dev",
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Information",
|
"Default": "Information",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"PONG": "#{PING}#",
|
"PONG": "#{PING}#",
|
||||||
|
"app-version": "#{buildId}#",
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Information",
|
"Default": "Information",
|
||||||
|
|||||||
Reference in New Issue
Block a user