Skip to content

Commit

Permalink
Fixed the responsetype of getProducts (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
TTA777 authored Nov 2, 2023
1 parent 9c33d3b commit daed7ca
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public async Task<IActionResult> UpdateProduct(UpdateProductRequest product)
/// <response code="200">Successful request</response>
[HttpGet]
[AllowAnonymous]
[ProducesResponseType(typeof(IEnumerable<ChangedProductResponse>), StatusCodes.Status200OK)]
public async Task<ActionResult<IEnumerable<ChangedProductResponse>>> GetProducts()
[ProducesResponseType(typeof(IEnumerable<ProductResponse>), StatusCodes.Status200OK)]
public async Task<ActionResult<IEnumerable<ProductResponse>>> GetProducts()
{
IEnumerable<Product> products;
try
Expand Down Expand Up @@ -105,4 +105,4 @@ private static ProductResponse MapProductToDto(Product product)
};
}
}
}
}

0 comments on commit daed7ca

Please sign in to comment.