diff --git a/PyroFetes/Endpoints/Price/CreatePriceEndpoint.cs b/PyroFetes/Endpoints/Price/CreatePriceEndpoint.cs index d65ba2d9..43934a6c 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 856280f7..43c4e1fc 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 c79de3d1..8c09819b 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 0f0562a3..59e3332a 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 2dad3aa3..1a7dfb9f 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 162245c6..01654ef9 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 93250d65..246ad916 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 34b059d0..972858d1 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 39e84595..64aa17bf 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 553800a3..f62d033f 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 62324818..15b95354 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 b550c854..980b013b 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 40b6e8ef..8e1af73b 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 ea319032..713deceb 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 ab68ebb2..1525921a 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 c13f7fe0..1e07daa9 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 5b027b52..a9c4df58 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 f3736749..491d99f4 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 13a89352..b3adb8c2 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)