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.

TransparencyAreaRegistration.cs 890B

123456789101112131415161718192021222324252627282930
  1. using System.Collections.Generic;
  2. using System.Web.Mvc;
  3. using Teknik.Configuration;
  4. namespace Teknik.Areas.Transparency
  5. {
  6. public class TransparencyAreaRegistration : AreaRegistration
  7. {
  8. public override string AreaName
  9. {
  10. get
  11. {
  12. return "Transparency";
  13. }
  14. }
  15. public override void RegisterArea(AreaRegistrationContext context)
  16. {
  17. Config config = Config.Load();
  18. context.MapSubdomainRoute(
  19. "Transparency.Index",
  20. new List<string>() { "transparency" }, // Subdomains
  21. new List<string>() { config.Host }, // domains
  22. "",
  23. new { controller = "Transparency", action = "Index" },
  24. new[] { typeof(Controllers.TransparencyController).Namespace }
  25. );
  26. }
  27. }
  28. }