Browse Source

Fixed domain mapping for subdomain less routes

master
Teknikode 7 months ago
parent
commit
37fc3ca560
  1. 4
      Utilities/Routing/SubdomainEndpointExtension.cs

4
Utilities/Routing/SubdomainEndpointExtension.cs

@ -65,6 +65,10 @@ namespace Teknik.Utilities.Routing @@ -65,6 +65,10 @@ namespace Teknik.Utilities.Routing
private static string[] BuildHosts(List<string> subdomains, List<string> hosts)
{
var fullHosts = new List<string>();
if (subdomains != null &&
subdomains.Count == 0)
return hosts?.ToArray();
foreach (var sub in subdomains)
{
foreach (var host in hosts)

Loading…
Cancel
Save