ScoriaWeb.DevRouter (scoria v0.1.2)

Copy Markdown View Source

Dev-only router that mounts the Scoria dashboard for local development.

This file lives under dev/ and is compiled ONLY in :dev (see elixirc_paths/1 in mix.exs). It is never included in the Hex package (package.files lists lib explicitly, not dev), so adopters never receive it — it exists purely so mix phx.server can serve the dashboard for the screenshot/critique harness and manual iteration.

It mirrors the per-test inline routers used in test/scoria_web/live/*: a minimal :browser pipeline plus the public scoria_dashboard/2 macro.

Summary

Functions

Callback invoked by Plug on every request.

Callback required by Plug that initializes the router for serving web requests.

Functions

browser(conn, _)

call(conn, opts)

Callback invoked by Plug on every request.

formatted_routes(_)

Callback implementation for Phoenix.VerifiedRoutes.formatted_routes/1.

init(opts)

Callback required by Plug that initializes the router for serving web requests.

verified_route?(_, split_path)

Callback implementation for Phoenix.VerifiedRoutes.verified_route?/2.