Skip to content

Commit

Permalink
feat: added health check ping endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-asos committed Sep 21, 2023
1 parent 5f077c5 commit 525cbf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Blazored.Toast;
using Microsoft.OpenApi.Models;
using Blazored.Modal;
using Swashbuckle.AspNetCore.Swagger;
using System.Reflection;
using AzureNamingTool.Models;

Expand All @@ -12,6 +11,7 @@
// Add services to the container.
builder.Services.AddMvcCore().AddApiExplorer();
builder.Services.AddRazorPages();
builder.Services.AddHealthChecks();
if (builder.Environment.IsDevelopment())
{
builder.Services.AddServerSideBlazor().AddCircuitOptions(x => x.DetailedErrors = true).AddHubOptions(x => x.MaximumReceiveMessageSize = 102400000);
Expand Down Expand Up @@ -55,6 +55,8 @@
builder.Services.AddMemoryCache();
var app = builder.Build();

app.MapHealthChecks("/healthcheck/ping");

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
Expand Down

0 comments on commit 525cbf9

Please sign in to comment.