mouth v0.4.1 Plug.Mouth.InboxPreview

Plug that serves pages useful for previewing messages in development.

It takes one option at initialization:

  • base_path - sets the base URL path where this module is plugged. Defaults to /.

Examples

# in a Phoenix router
defmodule Sample.Router do
  scope "/dev" do
    pipe_through [:browser]
    forward "/inbox", Plug.Mouth.InboxPreview, [base_path: "/dev/inbox"]
  end
end

Link to this section Summary

Functions

Callback implementation for Plug.call/2

Callback implementation for Plug.init/1

Link to this section Functions

Link to this function call(conn, opts)

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.