demo20230512/App_Start/RouteConfig.cs
2023-05-12 10:20:28 +08:00

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 }
);
}
}
}