using Nop.Core; using Nop.Services.Common; using Nop.Services.Plugins; namespace Nop.Plugin.Misc.WebApi.Frontend; /// /// Represents the Web API frontend plugin /// public class WebApiFrontendPlugin : BasePlugin, IMiscPlugin { #region Fields protected readonly IWebHelper _webHelper; #endregion #region Ctor public WebApiFrontendPlugin(IWebHelper webHelper) { _webHelper = webHelper; } #endregion #region Methods /// /// Gets a configuration page URL /// public override string GetConfigurationPageUrl() { return $"{_webHelper.GetStoreLocation()}Admin/WebApiFrontend/Configure"; } /// /// Install the plugin /// /// A task that represents the asynchronous operation public override async Task InstallAsync() { await base.InstallAsync(); } /// /// Uninstall the plugin /// /// A task that represents the asynchronous operation public override async Task UninstallAsync() { await base.UninstallAsync(); } #endregion }