Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Backend Web with Web APIs/sample-code/MyNewApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
app.MapPost("/todos", (Todo task, ITaskService service) =>
{
service.AddTodo(task);
return TypedResults.Created($"/todos/{id}", task);
return TypedResults.Created("/todos/{id}", task);
})
.AddEndpointFilter(async (context, next) => {
var taskArgument = context.GetArgument<Todo>(0);
Expand Down Expand Up @@ -89,4 +89,4 @@ public List<Todo> GetTodos()
{
return _todos;
}
}
}