Skip to content

Commit

Permalink
Refactor healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Nov 26, 2024
1 parent e607df3 commit fc10e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MyApp/Configure.HealthCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class StartupFilter : IStartupFilter
{
public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
=> app => {
app.UseEndpoints(endpoints => endpoints.MapHealthChecks("/up"));
app.UseHealthChecks("/up");
next(app);
};
}
Expand Down

0 comments on commit fc10e39

Please sign in to comment.