forked from sanchezvem/PyroFetes
Retired /api in all the endpoints
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ public class GetAllQuotationEndpoint(QuotationsRepository quotationsRepository)
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/quotations");
|
||||
Get("/quotations");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user