Tenant. ParamPlug
(Tenant v2.0.1)
View Source
This is a basic plug that loads the current tenant assign from a given param.
To plug it on your router, you can use:
plug Tenant.ParamPlug,
param: :subdomain,
tenant_handler: &TenantHelper.tenant_handler/1See Tenant.ParamPlugConfig to check all the allowed config flags.