Skip to content

Commit

Permalink
1.11.2 - Search API health check endpoint update (#207)
Browse files Browse the repository at this point in the history
* adding health check test to the terraform scripts

* updating health check endpoint

* removing terraform unused code
  • Loading branch information
mkieres authored Jul 9, 2023
1 parent ff76cf8 commit a3edd06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion backend/BGC.SearchApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
await Results.Problem(statusCode: statusCodeContext.HttpContext.Response.StatusCode)
.ExecuteAsync(statusCodeContext.HttpContext);
});
app.MapHealthChecks("/health");
app.MapHealthChecks("api/search/health");

app.MapGet("api/search", [Authorize] ([FromQuery] string query, ISearchService searchService) => searchService.Search(query, CancellationToken.None))
.WithOpenApi();
Expand Down
2 changes: 0 additions & 2 deletions cloud_infrastructure/terraform/shared/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,3 @@ resource "azurerm_api_management_logger" "apim-insights" {
instrumentation_key = azurerm_application_insights.apim_appi.instrumentation_key
}
}


0 comments on commit a3edd06

Please sign in to comment.