-
Notifications
You must be signed in to change notification settings - Fork 0
/
RouteProvider.cs
37 lines (31 loc) · 1.38 KB
/
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
33
34
35
36
37
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Nop.Web.Framework.Mvc.Routing;
namespace Nop.Plugin.Payments.Rave
{
public partial class RouteProvider : IRouteProvider
{
/// <summary>
/// Register routes
/// </summary>
/// <param name="routeBuilder">Route builder</param>
public void RegisterRoutes(IRouteBuilder routeBuilder)
{
routeBuilder.MapRoute("Plugin.Payments.Rave.ReturnPaymentInfo", "Plugins/PaymentRave/ReturnPaymentInfo",
new { controller = "PaymentRave", action = "ReturnPaymentInfo" });
routeBuilder.MapRoute("Plugin.Payments.Rave.OrderUnSuccessful", "Plugins/PaymentRave/OrderUnSuccessful",
new { controller = "PaymentRave", action = "OrderUnSuccessful" });
routeBuilder.MapRoute("Plugin.Payments.Rave.CancelOrder", "Plugins/PaymentRave/CancelOrder",
new { controller = "PaymentRave", action = "CancelOrder" });
routeBuilder.MapRoute("Plugin.Payments.Rave.RaveWebHook", "Plugins/PaymentRave/RaveWebHook",
new { controller = "PaymentRave", action = "RaveWebHook" });
}
/// <summary>
/// Gets a priority of route provider
/// </summary>
public int Priority
{
get { return -1; }
}
}
}