AgentDbWeb.Router (agent_db v0.1.0)

Copy Markdown View Source

The HTTP surface.

Two pipelines, because there are two kinds of client: an operator on the machine the store runs on, browsing a console, and a program reaching the store over the network. The API pipeline authenticates and answers JSON; the browser pipeline renders pages. Both reach the store only through the facade.

Summary

Functions

Callback invoked by Plug on every request.

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

Functions

api(conn, _)

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.