Update Program.cs (#198)

pull/200/head
Rick Anderson 2023-09-28 12:54:37 -10:00 committed by GitHub
parent e01caf49fb
commit a77246ae5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,8 @@ builder.Services.ConfigureHttpJsonOptions(options =>
var app = builder.Build(); var app = builder.Build();
app.MapPut("/v1/todos/{id}", ([AsParameters] TodoRequest todoRequest) => Results.Ok(todoRequest.Todo)); app.MapPut("/v1/todos/{id}",
([AsParameters] TodoRequest todoRequest) => Results.Ok(todoRequest.Todo));
app.Run(); app.Run();
@ -46,7 +47,8 @@ builder.Services.ConfigureHttpJsonOptions(options =>
var app = builder.Build(); var app = builder.Build();
app.MapPut("/v1/todos/{id}", ([AsParameters] TodoRequest todoRequest) => Results.Ok(todoRequest.Todo)); app.MapPut("/v1/todos/{id}",
([AsParameters] TodoRequest todoRequest) => Results.Ok(todoRequest.Todo));
app.Run(); app.Run();