Pow v1.0.1 Pow.Phoenix.Controller View Source

Used with Pow Phoenix controllers to handle messages, routes and callbacks.

Configuration options

Link to this section Summary

Functions

Handles the controller action call

Fetches messages backend from configuration, or use fallback

router_helpers(map) deprecated

Fetches router helpers module from connection

Fetches routes backend from configuration, or use fallback

Link to this section Functions

Link to this function

action(controller, conn, params) View Source
action(atom(), Plug.Conn.t(), map()) :: Plug.Conn.t()

Handles the controller action call.

If a :controller_callbacks module has been set in the configuration, then before_process and before_respond will be called on this module on all actions.

Link to this function

messages(conn, fallback) View Source
messages(Plug.Conn.t(), atom()) :: atom()

Fetches messages backend from configuration, or use fallback.

Link to this function

route_helper(plug) View Source
route_helper(atom()) :: binary()

Link to this function

router_helpers(map) View Source
router_helpers(Plug.Conn.t()) :: atom()

This function is deprecated. Call the router module directly instead..

Fetches router helpers module from connection.

Link to this function

routes(conn, fallback) View Source
routes(Plug.Conn.t(), atom()) :: atom()

Fetches routes backend from configuration, or use fallback.