Skip to content

Commit

Permalink
Mark replaced API obsolete (#669)
Browse files Browse the repository at this point in the history
feat: Mark replaced API obsolete (#669)
  • Loading branch information
asvishnyakov authored Feb 7, 2024
1 parent 370965b commit 03c8432
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit 03c8432

Please sign in to comment.