View Source Plug.Swoosh.MailboxPreview (Swoosh v1.17.3)

Plug that serves pages useful for previewing emails in development.

Examples

# in a Phoenix router
defmodule Sample.Router do
  scope "/dev" do
    pipe_through [:browser]
    forward "/mailbox", Plug.Swoosh.MailboxPreview
  end
end

Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Functions

call(conn, opts)

Callback implementation for Plug.call/2.

init(opts)

Callback implementation for Plug.init/1.