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

Resolves `conn.host` into a site and assigns `:current_site` and
`:current_theme`. Hosts in `:platform_hosts` are left untouched so they
can be served by the platform router; any other unknown host gets a 404.

    plug Multitenancy.Plug.ResolveSite,
      resolver: Multitenancy.SiteResolver.YAML,
      platform_hosts: ["localhost"]

# `put_site`

Stores `site` and its theme in the connection.

---

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