change route

This commit is contained in:
2025-12-04 15:29:23 +01:00
parent 0a001e15e3
commit df0756ff50
28 changed files with 64 additions and 38 deletions

View File

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

View File

@@ -11,7 +11,7 @@ public class DeleteCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) :
{
public override void Configure()
{
Delete ("/api/CustomerType/{@Id}", x => new { x.Id });
Delete ("/api/customertype/{@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/customertype");
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/customertype/{@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/customertype/{@Id}", x => new { x.Id });
AllowAnonymous();
}