Update to latest Endpoints package and fix breaking changes (#506)

This commit is contained in:
Steve Smith
2021-02-13 10:50:31 -05:00
committed by GitHub
parent 5aa3993c84
commit ba9aea29bd
11 changed files with 56 additions and 39 deletions

View File

@@ -11,7 +11,9 @@ using System.Threading.Tasks;
namespace Microsoft.eShopWeb.PublicApi.CatalogItemEndpoints
{
[Authorize(Roles = BlazorShared.Authorization.Constants.Roles.ADMINISTRATORS, AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
public class Delete : BaseAsyncEndpoint<DeleteCatalogItemRequest, DeleteCatalogItemResponse>
public class Delete : BaseAsyncEndpoint
.WithRequest<DeleteCatalogItemRequest>
.WithResponse<DeleteCatalogItemResponse>
{
private readonly IAsyncRepository<CatalogItem> _itemRepository;