change route
This commit is contained in:
@@ -8,7 +8,7 @@ public class CreateCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) :
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/CustomerType");
|
||||
Post("/api/customertype");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllCustomerTypeEndpoint(PyroFetesDbContext pyroFetesDbContext) :
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/CustomerType");
|
||||
Get ("/api/customertype");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user