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.

DevAreaRegistration.cs 1.1KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System.Web.Mvc;
  2. using Teknik.Areas.Home.Controllers;
  3. namespace Teknik.Areas.Dev
  4. {
  5. public class DevAreaRegistration : AreaRegistration
  6. {
  7. public override string AreaName
  8. {
  9. get
  10. {
  11. return "Dev";
  12. }
  13. }
  14. public override void RegisterArea(AreaRegistrationContext context)
  15. {
  16. context.MapSubdomainRoute(
  17. "Dev_subdomain", // Route name
  18. "dev",
  19. "Dev/{controller}/{action}", // URL with parameters
  20. new { controller = "Dev", action = "Index" }, // Parameter defaults
  21. new[] { typeof(Controllers.DevController).Namespace }
  22. );
  23. context.MapSubdomainRoute(
  24. "Dev_default", // Route name
  25. "dev",
  26. "", // URL with parameters
  27. "Home",
  28. new { controller = "Home", action = "Index" }, // Parameter defaults
  29. new[] { typeof(HomeController).Namespace }
  30. );
  31. }
  32. }
  33. }