Files
Disco/Disco.Web/Areas/Public/PublicAreaRegistration.cs
T
Gary Sharp 4cd57f4a90 Update: SignalR 2.0.3 Migration; Noticeboards
Migrate all SignalR 1.x Persistent Connections to SignalR 2.x Hubs.
Abstracts ScheduledTaskStatus with core interface and adds a Mock for
optional status reporting. Noticeboards rewritten (with new theme) to be
more resilient and accurate.
2014-06-01 23:27:07 +10:00

41 lines
1.3 KiB
C#

using System.Web.Mvc;
using System.Web.Routing;
using Microsoft.AspNet.SignalR;
namespace Disco.Web.Areas.Public
{
public class PublicAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "Public";
}
}
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
"Public_Credits",
"Public/Credits/{id}",
new { controller = "Public", action = "Credits", id = UrlParameter.Optional },
new string[] { "Disco.Web.Areas.Public.Controllers" }
);
context.MapRoute(
"Public_Licence",
"Public/Licence/{id}",
new { controller = "Public", action = "Licence", id = UrlParameter.Optional },
new string[] { "Disco.Web.Areas.Public.Controllers" }
);
context.MapRoute(
"Public_default",
"Public/{controller}/{action}/{id}",
new { controller = "Public", action = "Index", id = UrlParameter.Optional },
new string[] { "Disco.Web.Areas.Public.Controllers" }
);
}
}
}