Retired /api in all the endpoints

This commit is contained in:
Cristiano
2025-11-20 16:33:56 +01:00
parent b76b668097
commit 3ad506f869
50 changed files with 58 additions and 54 deletions

View File

@@ -17,7 +17,7 @@ public class CreateDeliveryNoteEndpoint(
{
public override void Configure()
{
Post("/api/DeliveryNote");
Post("/deliveryNotes");
AllowAnonymous();
}

View File

@@ -8,7 +8,7 @@ public class GetAllDeliveryNoteEndpoint(DeliveryNotesRepository deliveryNotesRep
{
public override void Configure()
{
Get("api/deliveryNotes");
Get("/deliveryNotes");
AllowAnonymous();
}

View File

@@ -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();
}

View File

@@ -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();
}