# `Multitenancy.Plug.Dispatch`
[🔗](https://github.com/marcosgz/multitenancy_phoenix/blob/v0.1.0/lib/multitenancy/plug/dispatch.ex#L1)

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

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
