Skip to content

Commit ec8809b

Browse files
committed
Updated Controllers.ClaimsController.cs
1 parent 8aa76f5 commit ec8809b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Controllers/ClaimsController.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace ClaimsApi.Controllers
2222
{
2323
[Route("api/v1/[controller]")]
2424
[ApiController]
25-
public class ClaimsController : ControllerBase
25+
public class ClaimsController : Controller
2626
{
2727
private readonly ClaimsContext _context;
2828
private readonly ILogger _logger;
@@ -43,10 +43,13 @@ public ClaimsController(ClaimsContext context, ILogger<ClaimsController> logger)
4343

4444
// ID09082019.sn
4545
// GET: api/v1/claims/healthz
46+
// when this method is called, dotnet runtime automagically does the backend (sql db) check!
4647

47-
[HttpGet("/healthz")]
48+
[HttpGet("healthz")]
4849
public JsonResult checkHealth()
4950
{
51+
_logger.LogInformation("checkHealth() called ....");
52+
5053
Dictionary<string, string> health = new Dictionary<string,string>();
5154
health.Add("api","api/v1/claims");
5255
// perform checks on the api's

0 commit comments

Comments
 (0)