sonderangebot artikel
This commit is contained in:
@@ -49,5 +49,15 @@ namespace Webshop.Api.Controllers.Public
|
||||
|
||||
return Ok(product);
|
||||
}
|
||||
/// <summary>
|
||||
/// Ruft eine Liste der Sonderangebote f<>r die Startseite ab, sortiert nach Anzeigereihenfolge.
|
||||
/// </summary>
|
||||
[HttpGet("featured")]
|
||||
[ProducesResponseType(typeof(IEnumerable<ProductDto>), 200)]
|
||||
public async Task<ActionResult<IEnumerable<ProductDto>>> GetFeaturedProducts()
|
||||
{
|
||||
var products = await _productService.GetFeaturedProductsAsync();
|
||||
return Ok(products);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user