# `DemoDirector.Plug.Static`
[🔗](https://github.com/ralmidani/demo_director/blob/v0.1.1/lib/demo_director/plug/static.ex#L1)

Mounted at the package's mount path by
`DemoDirector.Router.demo_director/1`. Routes:

  * `GET demo_director.css` / `GET demo_director.js` — static
    assets, served from `priv/static/`.
  * `GET demos` — HTML listing of saved demos with a Play button per
    row (delegates to `DemoDirector.Plug.Index`).
  * `GET demos/<name>.js` — JSON wrapper around a demo's emitted JS,
    used by the listing page's Play buttons.
  * `POST play` — broadcasts the request body as a playback JS
    payload (delegates to `DemoDirector.Plug.Play`).

Anything else returns 404.

---

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