Skip to content

Commit f503956

Browse files
committed
add runtime-info api
1 parent 518ecbb commit f503956

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

OpenReservation.Notification/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using OpenReservation.Notification;
22
using SendGrid;
33
using WeihanLi.Web.Authentication;
4+
using WeihanLi.Web.Extensions;
45

56
var builder = WebApplication.CreateSlimBuilder(args);
67

@@ -38,6 +39,7 @@
3839
healthChecks.MapGet("/live", () => Results.Ok()).ShortCircuit();
3940
healthChecks.MapGet("/ready", () => Results.Ok()).ShortCircuit();
4041

42+
app.MapRuntimeInfo().ShortCircuit();
4143
app.MapPost("/api/notification/{notificationType}", async (NotificationType notificationType, NotificationRequest request, HttpContext context) =>
4244
{
4345
var notification = context.RequestServices.GetRequiredKeyedService<INotification>(notificationType);

0 commit comments

Comments
 (0)