PhoenixAssets.Plug (PhoenixAssets v0.1.0)

View Source

A development plug exposing asset-runtime status at GET /__assets/status.

Mounted in the endpoint during development, it returns a small JSON document describing whether dev mode is active and whether the production manifest is loaded -- handy for the dev overlay, Tidewave, and quick curl checks. In production (or whenever :enabled is false) it passes the connection through untouched.

Usage

plug PhoenixAssets.Plug