Skip to content

Commit

Permalink
Merge branch 'release/6.38.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
vc-ci committed Feb 15, 2024
2 parents 628b352 + 8378bef commit 323a439
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Authors>VirtoCommerce</Authors>
</PropertyGroup>
<PropertyGroup>
<VersionPrefix>6.37.0</VersionPrefix>
<VersionPrefix>6.38.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using VirtoCommerce.LiquidThemeEngine;
using VirtoCommerce.Storefront.Infrastructure;
using VirtoCommerce.Storefront.Model;
using VirtoCommerce.Storefront.Model.Common;

namespace VirtoCommerce.Storefront.Controllers.Api
{
[Obsolete]
[StorefrontApiRoute("theme")]
[ResponseCache(CacheProfileName = "None")]
public class ApiThemeController : StorefrontControllerBase
Expand All @@ -19,6 +21,7 @@ public ApiThemeController(IWorkContextAccessor workContextAccessor, IStorefrontU
}

// GET: storefrontapi/theme/context
[Obsolete("Use store query from GraphQL")]
[HttpGet("context")]
[AllowAnonymous]
public ActionResult<SpaThemeContext> GetSpaThemeContext()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ protected void AddCurrentUser(HttpRequestMessage request)
else
{
request.Headers.Add("VirtoCommerce-User-Name", "Anonymous");
request.Headers.Add("VirtoCommerce-Anonymous-User-Id", currentUser?.Id);
}
}
}
Expand Down

0 comments on commit 323a439

Please sign in to comment.