We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edc1d78 commit cbfdeb4Copy full SHA for cbfdeb4
035_NancyFX_To_Core_Migration/Program.cs
@@ -16,6 +16,11 @@ public static void Main(string[] args)
16
17
var app = builder.Build();
18
19
+ // Using Minimal API Approach
20
+ app.MapGet("/", () => "Hello from ASP.NET Core!");
21
+
22
+ app.MapGet("/greet/{name}", (string name) => $"Hello, {name}!");
23
24
// Configure the HTTP request pipeline.
25
if (app.Environment.IsDevelopment())
26
{
0 commit comments