.NET 6 Net Otorisasi API Minimal 6

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