.NET 6 Minimalne autoryzacja API netto 6

app.MapGet(“/AuthorizedResource”, (Func<string>)(
[Authorize] () => “Action Succeeded”)
).Produces(StatusCodes.Status200OK)
.WithName(“Authorized”).WithTags(“Accounts”).RequireAuthorization();
Wrong Willet