change route
This commit is contained in:
@@ -8,7 +8,7 @@ public class CreateCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/Customer");
|
||||
Post("/api/customer");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class DeleteCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete ("/api/Customer/{@Id}", x => new { x.Id });
|
||||
Delete ("/api/customer/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/Customer");
|
||||
Get ("/api/customer");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class GetCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoi
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/Customer/{@Id}", x => new { x.Id });
|
||||
Get ("/api/customer/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -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/customer/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user