From fd8247187ff26d7f142b549e2a2a946944293763 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Wed, 5 Jul 2023 17:51:38 -1000 Subject: [PATCH] Update Program.cs --- .../minimal-apis/7.0-samples/WebMinAPIs/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aspnetcore/fundamentals/minimal-apis/7.0-samples/WebMinAPIs/Program.cs b/aspnetcore/fundamentals/minimal-apis/7.0-samples/WebMinAPIs/Program.cs index 1e15928312f1..d885152fe29c 100644 --- a/aspnetcore/fundamentals/minimal-apis/7.0-samples/WebMinAPIs/Program.cs +++ b/aspnetcore/fundamentals/minimal-apis/7.0-samples/WebMinAPIs/Program.cs @@ -188,15 +188,15 @@ app.Run(); // #elif CONFIG // -// +// var app = WebApplication.Create(args); -var message = app.Configuration["HelloKey"] ?? "Hello"; +var message = app.Configuration["HelloKey"] ?? "Config failed!"; app.MapGet("/", () => message); app.Run(); -// +// #elif LOG // var app = WebApplication.Create(args);