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 794B

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