View Source GlificWeb.SubdomainPlug (Glific v5.1.6)
This is a basic plug that loads the current organization assign from a given value set on subdomain.
To plug it on your router, you can use:
plug GlificWeb.SubdomainPlug,
endpoint: MyApp.Endpoint,
organization_handler: &OrganizationHelper.organization_handler/1
See GlificWeb.SubdomainPlugConfig
to check all the allowed config
flags.