diff --git a/PyroFetes/Endpoints/DeliveryNotes/CreateDeliveryNoteEndpoint.cs b/PyroFetes/Endpoints/DeliveryNotes/CreateDeliveryNoteEndpoint.cs index bc7a44a..1e2c0f3 100644 --- a/PyroFetes/Endpoints/DeliveryNotes/CreateDeliveryNoteEndpoint.cs +++ b/PyroFetes/Endpoints/DeliveryNotes/CreateDeliveryNoteEndpoint.cs @@ -18,6 +18,7 @@ public class CreateDeliveryNoteEndpoint( public override void Configure() { Post("/api/DeliveryNote"); + AllowAnonymous(); } public override async Task HandleAsync(CreateDeliveryNoteDto req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/Products/GetAllProductsEndpoint.cs b/PyroFetes/Endpoints/Products/GetAllProductsEndpoint.cs index e0d13d8..a61104f 100644 --- a/PyroFetes/Endpoints/Products/GetAllProductsEndpoint.cs +++ b/PyroFetes/Endpoints/Products/GetAllProductsEndpoint.cs @@ -10,6 +10,7 @@ public class GetAllProductsEndpoint(PyroFetesDbContext database) : EndpointWitho public override void Configure() { Get("/api/products"); + AllowAnonymous(); } public override async Task HandleAsync(CancellationToken ct) diff --git a/PyroFetes/Endpoints/Products/GetProductEndpoint.cs b/PyroFetes/Endpoints/Products/GetProductEndpoint.cs index 2125a9c..d1c39f8 100644 --- a/PyroFetes/Endpoints/Products/GetProductEndpoint.cs +++ b/PyroFetes/Endpoints/Products/GetProductEndpoint.cs @@ -15,6 +15,7 @@ public class GetProductEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(GetProductRequest req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/Products/UpdateProductEndpoint.cs b/PyroFetes/Endpoints/Products/UpdateProductEndpoint.cs index ca26fde..8dc8172 100644 --- a/PyroFetes/Endpoints/Products/UpdateProductEndpoint.cs +++ b/PyroFetes/Endpoints/Products/UpdateProductEndpoint.cs @@ -11,6 +11,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/PurchaseOrders/GetAllPurchaseOrderEndpoint.cs b/PyroFetes/Endpoints/PurchaseOrders/GetAllPurchaseOrderEndpoint.cs index b2e4c7e..69c1fb1 100644 --- a/PyroFetes/Endpoints/PurchaseOrders/GetAllPurchaseOrderEndpoint.cs +++ b/PyroFetes/Endpoints/PurchaseOrders/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/PurchaseOrders/GetPurchaseOrderEndpoint.cs b/PyroFetes/Endpoints/PurchaseOrders/GetPurchaseOrderEndpoint.cs index 8920221..374ec4c 100644 --- a/PyroFetes/Endpoints/PurchaseOrders/GetPurchaseOrderEndpoint.cs +++ b/PyroFetes/Endpoints/PurchaseOrders/GetPurchaseOrderEndpoint.cs @@ -16,6 +16,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/Quotations/GetAllQuotationEndpoint.cs b/PyroFetes/Endpoints/Quotations/GetAllQuotationEndpoint.cs index f4efa10..44f3f5b 100644 --- a/PyroFetes/Endpoints/Quotations/GetAllQuotationEndpoint.cs +++ b/PyroFetes/Endpoints/Quotations/GetAllQuotationEndpoint.cs @@ -11,6 +11,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/Quotations/GetQuotationEndpoint.cs b/PyroFetes/Endpoints/Quotations/GetQuotationEndpoint.cs index 0a455b4..d600e0f 100644 --- a/PyroFetes/Endpoints/Quotations/GetQuotationEndpoint.cs +++ b/PyroFetes/Endpoints/Quotations/GetQuotationEndpoint.cs @@ -16,6 +16,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/Settings/CreateSettingEndpoint.cs b/PyroFetes/Endpoints/Settings/CreateSettingEndpoint.cs index 97c35fb..1fd6ec9 100644 --- a/PyroFetes/Endpoints/Settings/CreateSettingEndpoint.cs +++ b/PyroFetes/Endpoints/Settings/CreateSettingEndpoint.cs @@ -10,6 +10,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/Settings/GetSettingEndpoint.cs b/PyroFetes/Endpoints/Settings/GetSettingEndpoint.cs index f3011ab..b0656f6 100644 --- a/PyroFetes/Endpoints/Settings/GetSettingEndpoint.cs +++ b/PyroFetes/Endpoints/Settings/GetSettingEndpoint.cs @@ -15,6 +15,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/Settings/PatchSettingElectronicSignatureEndpoint.cs b/PyroFetes/Endpoints/Settings/PatchSettingElectronicSignatureEndpoint.cs index 7119c1d..b62776c 100644 --- a/PyroFetes/Endpoints/Settings/PatchSettingElectronicSignatureEndpoint.cs +++ b/PyroFetes/Endpoints/Settings/PatchSettingElectronicSignatureEndpoint.cs @@ -10,7 +10,8 @@ public class PatchSettingElectronicSignatureEndpoint(PyroFetesDbContext database { public override void Configure() { - Get("/api/setting/{@Id}/ElectronicSignature", x => new {x.Id}); + Patch("/api/setting/{@Id}/ElectronicSignature", x => new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(PatchSettingElectronicSignatureDto req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/Settings/PatchSettingLogoEndpoint.cs b/PyroFetes/Endpoints/Settings/PatchSettingLogoEndpoint.cs index 8916f20..ef974c7 100644 --- a/PyroFetes/Endpoints/Settings/PatchSettingLogoEndpoint.cs +++ b/PyroFetes/Endpoints/Settings/PatchSettingLogoEndpoint.cs @@ -10,7 +10,8 @@ public class PatchSettingLogoEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + Patch("/api/setting/{@Id}/Logo", x => new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(PatchSettingLogoDto req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/Suppliers/CreateSupplierEndpoint.cs b/PyroFetes/Endpoints/Suppliers/CreateSupplierEndpoint.cs index 0bf6b9e..8ec116f 100644 --- a/PyroFetes/Endpoints/Suppliers/CreateSupplierEndpoint.cs +++ b/PyroFetes/Endpoints/Suppliers/CreateSupplierEndpoint.cs @@ -10,6 +10,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/Suppliers/GetAllSuppliersEndpoint.cs b/PyroFetes/Endpoints/Suppliers/GetAllSuppliersEndpoint.cs index ea65f22..8e13b2e 100644 --- a/PyroFetes/Endpoints/Suppliers/GetAllSuppliersEndpoint.cs +++ b/PyroFetes/Endpoints/Suppliers/GetAllSuppliersEndpoint.cs @@ -9,6 +9,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/Suppliers/GetSupplierEndpoint.cs b/PyroFetes/Endpoints/Suppliers/GetSupplierEndpoint.cs index a2dec7c..628969d 100644 --- a/PyroFetes/Endpoints/Suppliers/GetSupplierEndpoint.cs +++ b/PyroFetes/Endpoints/Suppliers/GetSupplierEndpoint.cs @@ -15,6 +15,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/Suppliers/PatchSupplierDeleveryDelayEndpoint.cs b/PyroFetes/Endpoints/Suppliers/PatchSupplierDeleveryDelayEndpoint.cs index 3574f2e..85d4040 100644 --- a/PyroFetes/Endpoints/Suppliers/PatchSupplierDeleveryDelayEndpoint.cs +++ b/PyroFetes/Endpoints/Suppliers/PatchSupplierDeleveryDelayEndpoint.cs @@ -10,7 +10,8 @@ public class PatchSupplierDeleveryDelayEndpoint(PyroFetesDbContext database) : E { public override void Configure() { - Get("/api/supplier/{@Id}/DeleveryDalay", x => new {x.Id}); + Patch("/api/supplier/{@Id}/DeleveryDalay", x => new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(PatchSupplierDeliveryDelayDto req, CancellationToken ct) diff --git a/PyroFetes/Endpoints/Suppliers/UpdateSupplierEndpoint.cs b/PyroFetes/Endpoints/Suppliers/UpdateSupplierEndpoint.cs index 6a81bbc..e9c4ef4 100644 --- a/PyroFetes/Endpoints/Suppliers/UpdateSupplierEndpoint.cs +++ b/PyroFetes/Endpoints/Suppliers/UpdateSupplierEndpoint.cs @@ -11,6 +11,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/Users/DeleteUserEndpoint.cs b/PyroFetes/Endpoints/Users/DeleteUserEndpoint.cs index e69acdf..d5b0b62 100644 --- a/PyroFetes/Endpoints/Users/DeleteUserEndpoint.cs +++ b/PyroFetes/Endpoints/Users/DeleteUserEndpoint.cs @@ -14,6 +14,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/Users/GetAllUsersEndpoint.cs b/PyroFetes/Endpoints/Users/GetAllUsersEndpoint.cs index 65506a8..ddcd588 100644 --- a/PyroFetes/Endpoints/Users/GetAllUsersEndpoint.cs +++ b/PyroFetes/Endpoints/Users/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/Users/GetUserEndpoint.cs b/PyroFetes/Endpoints/Users/GetUserEndpoint.cs index 0de2798..3bcc589 100644 --- a/PyroFetes/Endpoints/Users/GetUserEndpoint.cs +++ b/PyroFetes/Endpoints/Users/GetUserEndpoint.cs @@ -15,6 +15,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/Users/UpdateUserEndpoint.cs b/PyroFetes/Endpoints/Users/UpdateUserEndpoint.cs index 0ecc3c1..20bb3d4 100644 --- a/PyroFetes/Endpoints/Users/UpdateUserEndpoint.cs +++ b/PyroFetes/Endpoints/Users/UpdateUserEndpoint.cs @@ -12,6 +12,7 @@ public class UpdateUserEndpoint(PyroFetesDbContext database) : Endpoint new {x.Id}); + AllowAnonymous(); } public override async Task HandleAsync(UpdateUserDto req, CancellationToken ct)