19 lines
464 B
ObjectPascal
19 lines
464 B
ObjectPascal
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Web;
|
||
|
using System.Web.Routing;
|
||
|
using Microsoft.AspNet.FriendlyUrls;
|
||
|
|
||
|
namespace $rootnamespace$
|
||
|
{
|
||
|
public static class RouteConfig
|
||
|
{
|
||
|
public static void RegisterRoutes(RouteCollection routes)
|
||
|
{
|
||
|
var settings = new FriendlyUrlSettings();
|
||
|
settings.AutoRedirectMode = RedirectMode.Permanent;
|
||
|
routes.EnableFriendlyUrls(settings);
|
||
|
}
|
||
|
}
|
||
|
}
|