routes updated
This commit is contained in:
@@ -8,7 +8,7 @@ public class CreateCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/customers");
|
||||
Post("/customers");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class DeleteCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete ("/api/customers/{@Id}", x => new { x.Id });
|
||||
Delete ("/customers/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/customers");
|
||||
Get ("/customers");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class GetCustomerEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoi
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get ("/api/customers/{@Id}", x => new { x.Id });
|
||||
Get ("/customers/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class UpdateCustomer(PyroFetesDbContext pyroFetesDbContext) : Endpoint <U
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put ("/api/customers/{@Id}", x => new { x.Id });
|
||||
Put ("/customers/{@Id}", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user