Skip to content

Commit 58d1994

Browse files
YuvalYuval
authored andcommitted
(HealthController): simplify health check response by removing version and timestamp
1 parent 41f09b1 commit 58d1994

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

02-Server/Controllers/HealthController.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// ---------------------------------------------------------------------------
1010

1111
using Microsoft.AspNetCore.Mvc;
12-
using System.Reflection;
1312

1413
namespace GroundShareAPI.Controllers
1514
{
@@ -18,16 +17,6 @@ namespace GroundShareAPI.Controllers
1817
public class HealthController : ControllerBase
1918
{
2019
[HttpGet]
21-
public IActionResult Get()
22-
{
23-
return Ok(new
24-
{
25-
status = "ok",
26-
version = Assembly.GetExecutingAssembly()
27-
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
28-
?.InformationalVersion ?? "unknown",
29-
timestamp = DateTime.UtcNow
30-
});
31-
}
20+
public IActionResult Get() => Ok(new { status = "ok" });
3221
}
3322
}

0 commit comments

Comments
 (0)