This commit is contained in:
Tizian.Breuch
2025-07-29 14:14:51 +02:00
parent 2cf73a2aac
commit deab93855e
4 changed files with 6 additions and 6 deletions

View File

@@ -14,11 +14,11 @@ namespace Webshop.Api.Controllers.Customer
[ApiController]
[Route("api/v1/customer/[controller]")] // z.B. /api/v1/customer/profile
[Authorize(Roles = "Customer")]
public class ProfileController : ControllerBase
public class CustomerController : ControllerBase
{
private readonly ICustomerService _customerService;
public ProfileController(ICustomerService customerService)
public CustomerController(ICustomerService customerService)
{
_customerService = customerService;
}
@@ -52,7 +52,7 @@ namespace Webshop.Api.Controllers.Customer
// << NEUER/AKTUALISIERTER ENDPUNKT FÜR PROFIL-AKTUALISIERUNG >>
[HttpPost("update-profile")] // /api/v1/customer/profile/update-profile
public async Task<IActionResult> UpdateProfile([FromBody] UpdateCustomerProfileDto request)
public async Task<IActionResult> UpdateProfile([FromBody] UpdateCustomerDto request)
{
if (!ModelState.IsValid) return BadRequest(ModelState);