From 27e8fea7f329de28f68c94c3c3e6c431f2eda245 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Mon, 17 Nov 2025 21:20:04 +0100 Subject: [PATCH] added AllowAnonymous(); --- PyroFetes/Endpoints/Price/CreatePriceEndpoint.cs | 2 +- PyroFetes/Endpoints/Product/GetAllProductsEndpoint.cs | 1 + PyroFetes/Endpoints/Product/GetProductEndpoint.cs | 1 + PyroFetes/Endpoints/Product/UpdateProductEndpoint.cs | 1 + .../Endpoints/PurchaseOrder/GetAllPurchaseOrderEndpoint.cs | 1 + PyroFetes/Endpoints/PurchaseOrder/GetPurchaseOrderEndpoint.cs | 1 + PyroFetes/Endpoints/Quotation/GetAllQuotationEndpoint.cs | 1 + PyroFetes/Endpoints/Quotation/GetQuotationEndpoint.cs | 1 + PyroFetes/Endpoints/SettingEndpoints/CreateSettingEndpoint.cs | 1 + PyroFetes/Endpoints/SettingEndpoints/DeleteSettingEndpoint.cs | 1 + PyroFetes/Endpoints/SettingEndpoints/GetSettingEndpoint.cs | 1 + .../SettingEndpoints/PatchSettingElectronicSignatureEndpoint.cs | 1 + .../Endpoints/SettingEndpoints/PatchSettingLogoEndpoint.cs | 1 + PyroFetes/Endpoints/Supplier/CreateSupplierEndpoint.cs | 1 + PyroFetes/Endpoints/Supplier/DeleteSupplierEndpoint.cs | 1 + PyroFetes/Endpoints/Supplier/GetAllSuppliersEndpoint.cs | 1 + PyroFetes/Endpoints/Supplier/GetSupplierEndpoint.cs | 1 + .../Endpoints/Supplier/PatchSupplierDeleveryDelayEndpoint.cs | 1 + PyroFetes/Endpoints/Supplier/UpdateSupplierEndpoint.cs | 1 + PyroFetes/Endpoints/User/DeleteUserEndpoint.cs | 1 + PyroFetes/Endpoints/User/GetAllUsersEndpoint.cs | 1 + PyroFetes/Endpoints/User/GetUserEndpoint.cs | 1 + PyroFetes/Endpoints/User/UpdateUserEndpoint.cs | 1 + 23 files changed, 23 insertions(+), 1 deletion(-) diff --git a/PyroFetes/Endpoints/Price/CreatePriceEndpoint.cs b/PyroFetes/Endpoints/Price/CreatePriceEndpoint.cs index d65ba2d..43934a6 100644 --- a/PyroFetes/Endpoints/Price/CreatePriceEndpoint.cs +++ b/PyroFetes/Endpoints/Price/CreatePriceEndpoint.cs @@ -60,7 +60,7 @@ public class CreatePriceEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(GetProductRequest req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/Product/UpdateProductEndpoint.cs b/PyroFetes/Endpoints/Product/UpdateProductEndpoint.cs index 856280f..43c4e1f 100644 --- a/PyroFetes/Endpoints/Product/UpdateProductEndpoint.cs +++ b/PyroFetes/Endpoints/Product/UpdateProductEndpoint.cs @@ -10,6 +10,7 @@ public class UpdateProductEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(UpdateProductDto req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/PurchaseOrder/GetAllPurchaseOrderEndpoint.cs b/PyroFetes/Endpoints/PurchaseOrder/GetAllPurchaseOrderEndpoint.cs index c79de3d..8c09819 100644 --- a/PyroFetes/Endpoints/PurchaseOrder/GetAllPurchaseOrderEndpoint.cs +++ b/PyroFetes/Endpoints/PurchaseOrder/GetAllPurchaseOrderEndpoint.cs @@ -10,6 +10,7 @@ public class GetAllPurchaseOrderEndpoint(PyroFetesDbContext database) : Endpoint public override void Configure() { Get("/api/purchaseOrders"); + AllowAnonymous(); } public override async Task HandleAsync(CancellationToken ct) diff --git a/PyroFetes/Endpoints/PurchaseOrder/GetPurchaseOrderEndpoint.cs b/PyroFetes/Endpoints/PurchaseOrder/GetPurchaseOrderEndpoint.cs index 0f0562a..59e3332 100644 --- a/PyroFetes/Endpoints/PurchaseOrder/GetPurchaseOrderEndpoint.cs +++ b/PyroFetes/Endpoints/PurchaseOrder/GetPurchaseOrderEndpoint.cs @@ -15,6 +15,7 @@ public class GetPurchaseOrderEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(GetPurchaseOrderRequest req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/Quotation/GetAllQuotationEndpoint.cs b/PyroFetes/Endpoints/Quotation/GetAllQuotationEndpoint.cs index 2dad3aa..1a7dfb9 100644 --- a/PyroFetes/Endpoints/Quotation/GetAllQuotationEndpoint.cs +++ b/PyroFetes/Endpoints/Quotation/GetAllQuotationEndpoint.cs @@ -10,6 +10,7 @@ public class GetAllQuotationEndpoint(PyroFetesDbContext database) : EndpointWith public override void Configure() { Get("/api/quotations"); + AllowAnonymous(); } public override async Task HandleAsync(CancellationToken ct) diff --git a/PyroFetes/Endpoints/Quotation/GetQuotationEndpoint.cs b/PyroFetes/Endpoints/Quotation/GetQuotationEndpoint.cs index 162245c..01654ef 100644 --- a/PyroFetes/Endpoints/Quotation/GetQuotationEndpoint.cs +++ b/PyroFetes/Endpoints/Quotation/GetQuotationEndpoint.cs @@ -15,6 +15,7 @@ public class GetQuotationEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(GetQuotationRequest req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/SettingEndpoints/CreateSettingEndpoint.cs b/PyroFetes/Endpoints/SettingEndpoints/CreateSettingEndpoint.cs index 93250d6..246ad91 100644 --- a/PyroFetes/Endpoints/SettingEndpoints/CreateSettingEndpoint.cs +++ b/PyroFetes/Endpoints/SettingEndpoints/CreateSettingEndpoint.cs @@ -9,6 +9,7 @@ public class CreateSettingEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(DeleteSettingRequest req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/SettingEndpoints/GetSettingEndpoint.cs b/PyroFetes/Endpoints/SettingEndpoints/GetSettingEndpoint.cs index 34b059d..972858d 100644 --- a/PyroFetes/Endpoints/SettingEndpoints/GetSettingEndpoint.cs +++ b/PyroFetes/Endpoints/SettingEndpoints/GetSettingEndpoint.cs @@ -14,6 +14,7 @@ public class GetSettingEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(GetSettingRequest req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/SettingEndpoints/PatchSettingElectronicSignatureEndpoint.cs b/PyroFetes/Endpoints/SettingEndpoints/PatchSettingElectronicSignatureEndpoint.cs index 39e8459..64aa17b 100644 --- a/PyroFetes/Endpoints/SettingEndpoints/PatchSettingElectronicSignatureEndpoint.cs +++ b/PyroFetes/Endpoints/SettingEndpoints/PatchSettingElectronicSignatureEndpoint.cs @@ -10,6 +10,7 @@ public class PatchSettingElectronicSignatureEndpoint(PyroFetesDbContext database public override void Configure() { Get("/api/setting/{@Id}/ElectronicSignature", x => new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(PatchSettingElectronicSignatureDto req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/SettingEndpoints/PatchSettingLogoEndpoint.cs b/PyroFetes/Endpoints/SettingEndpoints/PatchSettingLogoEndpoint.cs index 553800a..f62d033 100644 --- a/PyroFetes/Endpoints/SettingEndpoints/PatchSettingLogoEndpoint.cs +++ b/PyroFetes/Endpoints/SettingEndpoints/PatchSettingLogoEndpoint.cs @@ -10,6 +10,7 @@ public class PatchSettingLogoEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(PatchSettingLogoDto req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/Supplier/CreateSupplierEndpoint.cs b/PyroFetes/Endpoints/Supplier/CreateSupplierEndpoint.cs index 6232481..15b9535 100644 --- a/PyroFetes/Endpoints/Supplier/CreateSupplierEndpoint.cs +++ b/PyroFetes/Endpoints/Supplier/CreateSupplierEndpoint.cs @@ -9,6 +9,7 @@ public class CreateSupplierEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(DeleteSupplierRequest req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/Supplier/GetAllSuppliersEndpoint.cs b/PyroFetes/Endpoints/Supplier/GetAllSuppliersEndpoint.cs index b550c85..980b013 100644 --- a/PyroFetes/Endpoints/Supplier/GetAllSuppliersEndpoint.cs +++ b/PyroFetes/Endpoints/Supplier/GetAllSuppliersEndpoint.cs @@ -10,6 +10,7 @@ public class GetAllSuppliersEndpoint(PyroFetesDbContext database) : EndpointWith public override void Configure() { Get("/api/suppliers"); + AllowAnonymous(); } public override async Task HandleAsync(CancellationToken ct) diff --git a/PyroFetes/Endpoints/Supplier/GetSupplierEndpoint.cs b/PyroFetes/Endpoints/Supplier/GetSupplierEndpoint.cs index 40b6e8e..8e1af73 100644 --- a/PyroFetes/Endpoints/Supplier/GetSupplierEndpoint.cs +++ b/PyroFetes/Endpoints/Supplier/GetSupplierEndpoint.cs @@ -14,6 +14,7 @@ public class GetSupplierEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(GetSupplierRequest req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/Supplier/PatchSupplierDeleveryDelayEndpoint.cs b/PyroFetes/Endpoints/Supplier/PatchSupplierDeleveryDelayEndpoint.cs index ea31903..713dece 100644 --- a/PyroFetes/Endpoints/Supplier/PatchSupplierDeleveryDelayEndpoint.cs +++ b/PyroFetes/Endpoints/Supplier/PatchSupplierDeleveryDelayEndpoint.cs @@ -10,6 +10,7 @@ public class PatchSupplierDeleveryDelayEndpoint(PyroFetesDbContext database) : E public override void Configure() { Get("/api/supplier/{@Id}/DeleveryDalay", x => new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(PatchSupplierDeliveryDelayDto req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/Supplier/UpdateSupplierEndpoint.cs b/PyroFetes/Endpoints/Supplier/UpdateSupplierEndpoint.cs index ab68ebb..1525921 100644 --- a/PyroFetes/Endpoints/Supplier/UpdateSupplierEndpoint.cs +++ b/PyroFetes/Endpoints/Supplier/UpdateSupplierEndpoint.cs @@ -10,6 +10,7 @@ public class UpdateSupplierEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(UpdateSupplierDto req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/User/DeleteUserEndpoint.cs b/PyroFetes/Endpoints/User/DeleteUserEndpoint.cs index c13f7fe..1e07daa 100644 --- a/PyroFetes/Endpoints/User/DeleteUserEndpoint.cs +++ b/PyroFetes/Endpoints/User/DeleteUserEndpoint.cs @@ -13,6 +13,7 @@ public class DeleteUserEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(DeleteUserRequest req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/User/GetAllUsersEndpoint.cs b/PyroFetes/Endpoints/User/GetAllUsersEndpoint.cs index 5b027b5..a9c4df5 100644 --- a/PyroFetes/Endpoints/User/GetAllUsersEndpoint.cs +++ b/PyroFetes/Endpoints/User/GetAllUsersEndpoint.cs @@ -9,6 +9,7 @@ public class GetAllUsersEndpoint(PyroFetesDbContext database) : EndpointWithoutR public override void Configure() { Get("/api/users"); + AllowAnonymous(); } public override async Task HandleAsync(CancellationToken ct) diff --git a/PyroFetes/Endpoints/User/GetUserEndpoint.cs b/PyroFetes/Endpoints/User/GetUserEndpoint.cs index f373674..491d99f 100644 --- a/PyroFetes/Endpoints/User/GetUserEndpoint.cs +++ b/PyroFetes/Endpoints/User/GetUserEndpoint.cs @@ -14,6 +14,7 @@ public class GetUserEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(GetUserRequest req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/User/UpdateUserEndpoint.cs b/PyroFetes/Endpoints/User/UpdateUserEndpoint.cs index 13a8935..b3adb8c 100644 --- a/PyroFetes/Endpoints/User/UpdateUserEndpoint.cs +++ b/PyroFetes/Endpoints/User/UpdateUserEndpoint.cs @@ -11,6 +11,7 @@ public class UpdateUserEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(UpdateUserDto req, CancellationToken ct)