Rename public affiliate route to /support with localized nav labels, and include affiliate/social/wallpaper admin, 2FA login, and related site updates. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
983 B
C#
33 lines
983 B
C#
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}");
|
|
|
|
// 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" }
|
|
);
|
|
|
|
routes.MapRoute(
|
|
name: "Default",
|
|
url: "{controller}/{action}/{id}",
|
|
defaults: new { controller = "main", action = "Index", id = UrlParameter.Optional },
|
|
new[] { "atakanozbancom.Controllers" }
|
|
);
|
|
|
|
}
|
|
}
|
|
} |