mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Migrate server from ASP.NET Webforms to MVC.
This commit is contained in:
16
DiscImageChef.Server/App_Start/RouteConfig.cs
Normal file
16
DiscImageChef.Server/App_Start/RouteConfig.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
|
||||
namespace DiscImageChef.Server
|
||||
{
|
||||
public class RouteConfig
|
||||
{
|
||||
public static void RegisterRoutes(RouteCollection routes)
|
||||
{
|
||||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
||||
|
||||
routes.MapRoute("Default", "{controller}/{action}/{id}",
|
||||
new {controller = "Home", action = "Index", id = UrlParameter.Optional});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user