customer type + communication added

This commit is contained in:
2025-12-04 16:42:15 +01:00
parent a554693e9c
commit 6908112755
14 changed files with 102 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ public class CreateCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
{
public override void Configure()
{
Post("/api/customer");
Post("/api/customers");
AllowAnonymous();
}

View File

@@ -9,7 +9,7 @@ public class DeleteCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
{
public override void Configure()
{
Delete ("/api/customer/{@Id}", x => new { x.Id });
Delete ("/api/customers/{@Id}", x => new { x.Id });
AllowAnonymous();
}

View File

@@ -8,7 +8,7 @@ public class GetAllCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
{
public override void Configure()
{
Get ("/api/customer");
Get ("/api/customers");
AllowAnonymous();
}

View File

@@ -9,7 +9,7 @@ public class GetCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoi
{
public override void Configure()
{
Get ("/api/customer/{@Id}", x => new { x.Id });
Get ("/api/customers/{@Id}", x => new { x.Id });
AllowAnonymous();
}

View File

@@ -9,7 +9,7 @@ public class UpdateCustomer(PyroFetesDbContext pyroFetesDbContext) : Endpoint <U
{
public override void Configure()
{
Put ("/api/customer/{@Id}", x => new { x.Id });
Put ("/api/customers/{@Id}", x => new { x.Id });
AllowAnonymous();
}