grandnode/EndpointProvider.cs
2024-03-17 11:54:49 +01:00

20 lines
635 B
C#

using Grand.Infrastructure.Endpoints;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
namespace Payments.BTCPayServer
{
public class EndpointProvider : IEndpointProvider
{
public void RegisterEndpoint(IEndpointRouteBuilder endpointRouteBuilder)
{
endpointRouteBuilder.MapControllerRoute("Plugin.PaymentBTCPayServer",
"Plugins/PaymentBTCPayServer/PaymentInfo",
new { controller = "PaymentBTCPayServer", action = "PaymentInfo", area = "" }
);
}
public int Priority => 0;
}
}