# `ECharts.Phoenix.Plug`
[🔗](https://github.com/Mateus-M-Reis/echarts/blob/main/lib/echarts/phoenix/plug.ex#L2)

Serves the vendored ECharts bundles and the JavaScript clients.

Mount it in your router:

    forward "/echarts", ECharts.Phoenix.Plug

This makes the files listed by `ECharts.Assets.files/0` available under
`/echarts`, for example `/echarts/echarts.min.js` and
`/echarts/echarts_hook.js`.

The plug only serves an allowlist of bundled files. Unknown paths return
404, so it cannot be used to read arbitrary files.

---

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