forked from sanchezvem/PyroFetes
Retired /api in all the endpoints
This commit is contained in:
@@ -12,7 +12,7 @@ public class CreateDelivererEndpoint(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("api/deliverers");
|
||||
Post("/deliverers");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ public class DeleteDelivererEndpoint(DeliverersRepository deliverersRepository)
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("api/deliverers/{@id}", x=>new {x.DelivererId});
|
||||
Delete("/deliverers/{@id}", x=>new {x.DelivererId});
|
||||
AllowAnonymous();
|
||||
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ public class GetAllDelivererEndpoint(DeliverersRepository deliverersRepository)
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("api/deliverers");
|
||||
Get("/deliverers");
|
||||
AllowAnonymous();
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ public class GetDelivererEndpoint(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("api/deliverers/{@id}", x=>new {x.DelivererId});
|
||||
Get("/deliverers/{@id}", x=>new {x.DelivererId});
|
||||
AllowAnonymous();
|
||||
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ public class UpdateDelivererEndpoint(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put("api/deliverers/{@id}", x=>new {x.Id});
|
||||
Put("/deliverers/{@id}", x=>new {x.Id});
|
||||
AllowAnonymous();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user