The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

42 lines
1.4 KiB

using System.Collections.Generic;
using System.Web.Mvc;
using System.Web.Optimization;
using Teknik.Configuration;
using Teknik.Utilities;
namespace Teknik.Areas.IRC
{
public class IRCAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "IRC";
}
}
public override void RegisterArea(AreaRegistrationContext context)
{
Config config = Config.Load();
context.MapSubdomainRoute(
"IRC.Client", // Route name
new List<string>() { "irc" },
new List<string>() { config.Host },
"", // URL with parameters
new { controller = "IRC", action = "Client" }, // Parameter defaults
new[] { typeof(Controllers.IRCController).Namespace }
);
// Register Script Bundle
BundleTable.Bundles.Add(new CdnStyleBundle("~/Content/irc", config.CdnHost).Include(
"~/Areas/IRC/Content/IRC.css"));
// Register Script Bundle
BundleTable.Bundles.Add(new CdnScriptBundle("~/bundles/irc", config.CdnHost).Include(
"~/Scripts/bootbox/bootbox.min.js",
"~/Scripts/jquery.blockUI.js",
"~/Areas/IRC/Scripts/IRC.js"));
}
}
}