naming
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user