View Source ExTenant.TenantUtils (ExTenant v0.2.4)

utility functions for retrieving the subdomain from the conn.host

tenant1.host.com.au --> tenant1

This subdomain is then used, to retrieve the tenant from the database - using your supplied function

Link to this section Summary

Functions

function used in the ExTenant.SubdomainPlug to retrieve the subdomain from the host in the conn it either gets the function to the actual data retrieval from the config settings OR it falls back to use the local get_tenant_from_subdomain_func - which is just used in a test.

Link to this section Functions

Link to this function

retrieve_tenant_from_subdomain(subdomain)

View Source

function used in the ExTenant.SubdomainPlug to retrieve the subdomain from the host in the conn it either gets the function to the actual data retrieval from the config settings OR it falls back to use the local get_tenant_from_subdomain_func - which is just used in a test.