-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRouteProvider.cs
32 lines (29 loc) · 901 Bytes
/
RouteProvider.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using Grand.Framework.Mvc.Routing;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
namespace Grand.Plugin.Payments.Iyzico
{
public partial class RouteProvider : IRouteProvider
{
public void RegisterRoutes(IRouteBuilder routeBuilder)
{
//Show html
routeBuilder.MapRoute("Plugin.Payments.Iyzico.ThreeDPayment",
"Plugins/Iyzico/ThreeDPayment",
new { controller = "PaymentIyzico", action = "ThreeDPayment" }
);
//Handle callback
routeBuilder.MapRoute("Plugin.Payments.Iyzico.Handler",
"Plugins/Iyzico/Handler",
new { controller = "PaymentIyzico", action = "Handler" }
);
}
public int Priority
{
get
{
return 0;
}
}
}
}