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 DeleteQuotationEndpoint(
{
public override void Configure()
{
Delete("/api/quotations/{@Id}", x => new {x.Id});
Delete("/quotations/{@Id}", x => new {x.Id});
AllowAnonymous();
}

View File

@@ -11,7 +11,7 @@ public class GetAllQuotationEndpoint(QuotationsRepository quotationsRepository)
{
public override void Configure()
{
Get("/api/quotations");
Get("/quotations");
AllowAnonymous();
}

View File

@@ -19,7 +19,7 @@ public class GetQuotationEndpoint(
{
public override void Configure()
{
Get("/api/quotations/{@Id}", x => new {x.Id});
Get("/quotations/{@Id}", x => new {x.Id});
AllowAnonymous();
}

View File

@@ -15,7 +15,7 @@ public class PatchQuotationConditionsSaleEndpoint(
{
public override void Configure()
{
Patch("/api/quotations/{@Id}/ConditionsSale", x => new { x.Id });
Patch("/quotations/{@Id}/saleConditions", x => new { x.Id });
AllowAnonymous();
}