Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Add new attribute - ApiController
support054266ed7532
diff --git a/src/Core/Grand.SharedKernel/Attributes/ApiControllerAttribute.cs b/src/Core/Grand.SharedKernel/Attributes/ApiControllerAttribute.csnew file mode 100644index 000000000..1b0e1024d--- /dev/null+++ b/src/Core/Grand.SharedKernel/Attributes/ApiControllerAttribute.cs@@ -0,0 +1,6 @@+namespace Grand.SharedKernel.Attributes;++[AttributeUsage(AttributeTargets.Class)]+public class ApiControllerAttribute : Attribute+{+}\ No newline at end of filediff --git a/src/Web/Grand.Web.Common/Controllers/BasePublicController.cs b/src/Web/Grand.Web.Common/Controllers/BasePublicController.csindex 79f3a530e..054e1fff5 100644--- a/src/Web/Grand.Web.Common/Controllers/BasePublicController.cs+++ b/src/Web/Grand.Web.Common/Controllers/BasePublicController.cs@@ -8,6 +8,7 @@ namespace Grand.Web.Common.Controllers[ClosedStore][Language][Affiliate]+ [SharedKernel.Attributes.ApiController]public abstract class BasePublicController : BaseController{protected IActionResult InvokeHttp404()