Multitenancy.Plug.Dispatch (multitenancy_phoenix v0.2.0)

Copy Markdown View Source

Hands the request over to the current theme's router, or to the :platform router when no site was resolved or the path is one of the :platform_paths. Replaces the plug MyAppWeb.Router line at the end of the endpoint.

plug Multitenancy.Plug.Dispatch, platform: MyAppWeb.Router