diff --git a/.version b/.version
index d1dd92c..a9c032b 100644
--- a/.version
+++ b/.version
@@ -1 +1 @@
-0.3.2.11
\ No newline at end of file
+0.4.3.12
\ No newline at end of file
diff --git a/NetinaShop.Api/Controller/ShippingController.cs b/NetinaShop.Api/Controller/ShippingController.cs
index b49047b..65e792f 100644
--- a/NetinaShop.Api/Controller/ShippingController.cs
+++ b/NetinaShop.Api/Controller/ShippingController.cs
@@ -6,8 +6,7 @@ public class ShippingController : ICarterModule
public virtual void AddRoutes(IEndpointRouteBuilder app)
{
var group = app.NewVersionedApi("WarehouseShipping")
- .MapGroup($"api/warehouse/shipping")
- .RequireAuthorization(builder => builder.AddAuthenticationSchemes("Bearer").RequireAuthenticatedUser());
+ .MapGroup($"api/warehouse/shipping");
group.MapGet("", GetAllAsync)
.WithDisplayName("GetAllShipping")
@@ -15,15 +14,19 @@ public class ShippingController : ICarterModule
group.MapGet("{id}", GetAsync)
.WithDisplayName("GetShipping")
+ .RequireAuthorization(builder => builder.AddAuthenticationSchemes("Bearer").RequireAuthenticatedUser())
.HasApiVersion(1.0);
group.MapPost("", Post)
+ .RequireAuthorization(builder => builder.AddAuthenticationSchemes("Bearer").RequireAuthenticatedUser())
.HasApiVersion(1.0);
group.MapPut("", Put)
+ .RequireAuthorization(builder => builder.AddAuthenticationSchemes("Bearer").RequireAuthenticatedUser())
.HasApiVersion(1.0);
group.MapDelete("{id}", Delete)
+ .RequireAuthorization(builder => builder.AddAuthenticationSchemes("Bearer").RequireAuthenticatedUser())
.HasApiVersion(1.0);
}
diff --git a/NetinaShop.Api/NetinaShop.Api.csproj b/NetinaShop.Api/NetinaShop.Api.csproj
index 2dc8c15..ac4bf8e 100644
--- a/NetinaShop.Api/NetinaShop.Api.csproj
+++ b/NetinaShop.Api/NetinaShop.Api.csproj
@@ -6,8 +6,8 @@
enable
true
Linux
- 0.3.2.11
- 0.3.2.11
+ 0.4.3.12
+ 0.4.3.12
diff --git a/NetinaShop.Domain/Dtos/SmallDtos/DiscountSDto.cs b/NetinaShop.Domain/Dtos/SmallDtos/DiscountSDto.cs
index ee6afee..0e9e00b 100644
--- a/NetinaShop.Domain/Dtos/SmallDtos/DiscountSDto.cs
+++ b/NetinaShop.Domain/Dtos/SmallDtos/DiscountSDto.cs
@@ -12,8 +12,6 @@ public class DiscountSDto : BaseDto
public DateTime StartDate { get; set; }
public DateTime ExpireDate { get; set; }
public long PriceFloor { get; set; }
- public int MaxOrderCount { get; set; }
- public int Stock { get; set; }
public bool HasPriceFloor { get; set; }
public long PriceCeiling { get; set; }
public bool HasPriceCeiling { get; set; }