Try your search with a different keyword or use * as a wildcard.
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Nop.Web.Framework;
using Nop.Web.Framework.Mvc.Routing;
namespace Nop.Plugin.Misc.Zettle.Infrastructure;
///
/// Represents plugin route provider
///
public class RouteProvider : IRouteProvider
{
///
/// Register routes
///
/// Route builder
public void RegisterRoutes(IEndpointRouteBuilder endpointRouteBuilder)
{
endpointRouteBuilder.MapControllerRoute(name: ZettleDefaults.ConfigurationRouteName,
pattern: "Admin/Zettle/Configure",
defaults: new { controller = "ZettleAdmin", action = "Configure", area = AreaNames.ADMIN });
endpointRouteBuilder.MapControllerRoute(name: ZettleDefaults.WebhookRouteName,
pattern: "zettle/webhook",
defaults: new { controller = "ZettleWebhook", action = "Webhook" });
}
///
/// Gets a priority of route provider
///
public int Priority => 0;
}