GetAPIVersion
This commit is contained in:
@@ -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"] });
|
||||
}
|
||||
}
|
||||
@@ -1,2 +1,2 @@
|
||||
###
|
||||
GET http://localhost:5400/api/Admin/GetQueue
|
||||
GET http://localhost:5400/api/Admin/Version
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"PONG": "Development",
|
||||
"app-version": "0.0-dev",
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"PONG": "#{PING}#",
|
||||
"app-version": "#{buildId}#",
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
|
||||
Reference in New Issue
Block a user