2026-02-13 23:40:52 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Web;
|
|
|
|
|
|
using System.Web.Mvc;
|
|
|
|
|
|
using System.Web.Routing;
|
|
|
|
|
|
|
|
|
|
|
|
namespace atakanozbancom
|
|
|
|
|
|
{
|
|
|
|
|
|
public class RouteConfig
|
|
|
|
|
|
{
|
|
|
|
|
|
public static void RegisterRoutes(RouteCollection routes)
|
|
|
|
|
|
{
|
|
|
|
|
|
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
|
|
|
|
|
|
2026-07-29 20:25:55 +02:00
|
|
|
|
// Keep old /affiliate URLs working
|
|
|
|
|
|
routes.MapRoute(
|
|
|
|
|
|
name: "AffiliateRedirect",
|
|
|
|
|
|
url: "affiliate/{action}/{id}",
|
|
|
|
|
|
defaults: new { controller = "support", action = "Index", id = UrlParameter.Optional },
|
|
|
|
|
|
new[] { "atakanozbancom.Controllers" }
|
|
|
|
|
|
);
|
|
|
|
|
|
|
2026-02-13 23:40:52 +01:00
|
|
|
|
routes.MapRoute(
|
|
|
|
|
|
name: "Default",
|
|
|
|
|
|
url: "{controller}/{action}/{id}",
|
2026-07-29 20:25:55 +02:00
|
|
|
|
defaults: new { controller = "main", action = "Index", id = UrlParameter.Optional },
|
2026-02-13 23:40:52 +01:00
|
|
|
|
new[] { "atakanozbancom.Controllers" }
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2026-07-29 20:25:55 +02:00
|
|
|
|
}
|