27 lines
723 B
C#
27 lines
723 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using System.Web.Routing;
|
|
|
|
namespace Weee
|
|
{
|
|
public class RouteConfig
|
|
{
|
|
public static void RegisterRoutes(RouteCollection routes)
|
|
{
|
|
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
|
routes.MapMvcAttributeRoutes();
|
|
routes.MapRoute(
|
|
name: "Default",
|
|
url: "{area}/{controller}/{action}/{id}",
|
|
namespaces: new string[] { "Weee.Controllers"},
|
|
defaults: new {area="", controller = "Home", action = "WeeeCarbonFootprint", id = UrlParameter.Optional }
|
|
);
|
|
|
|
|
|
}
|
|
}
|
|
}
|