forked from sanchezvem/PyroFetes
Retired /api in all the endpoints
This commit is contained in:
@@ -17,7 +17,7 @@ public class CreateDeliveryNoteEndpoint(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/DeliveryNote");
|
||||
Post("/deliveryNotes");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class GetAllDeliveryNoteEndpoint(DeliveryNotesRepository deliveryNotesRep
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("api/deliveryNotes");
|
||||
Get("/deliveryNotes");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ public class GetDeliveryNoteEndpoint(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/deliveryNote/{@id}", x=> new {x.DeliveryNoteId});
|
||||
Get("/deliveryNotes/{@id}", x=> new {x.DeliveryNoteId});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ public class PatchRealDeliveryDateEndpoint(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Patch("/api/deliveryNote/{@id}", x=> new {x.Id});
|
||||
Patch("/deliveryNotes/{@id}", x=> new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user