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 CreateCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) :
{
public override void Configure()
{
Post("/api/customertype");
Post("/api/customertypes");
AllowAnonymous();
}

View File

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

View File

@@ -8,7 +8,7 @@ public class GetAllCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) :
{
public override void Configure()
{
Get ("/api/customertype");
Get ("/api/customertypes");
AllowAnonymous();
}

View File

@@ -9,7 +9,7 @@ public class GetCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) : En
{
public override void Configure()
{
Get ("/api/customertype/{@Id}", x => new { x.Id });
Get ("/api/customertypes/{@Id}", x => new { x.Id });
AllowAnonymous();
}

View File

@@ -9,7 +9,7 @@ public class UpdateCustomerType(PyroFetesDbContext pyroFetesDbContext) : Endpoin
{
public override void Configure()
{
Put ("/api/customertype/{@Id}", x => new { x.Id });
Put ("/api/customertypes/{@Id}", x => new { x.Id });
AllowAnonymous();
}