Update Program.cs (#198)
parent
e01caf49fb
commit
a77246ae5a
|
@ -14,7 +14,8 @@ builder.Services.ConfigureHttpJsonOptions(options =>
|
|||
|
||||
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();
|
||||
|
||||
|
@ -46,7 +47,8 @@ builder.Services.ConfigureHttpJsonOptions(options =>
|
|||
|
||||
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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue