Pow v1.0.0 Pow.Phoenix.Controller View Source
Used with Pow Phoenix controllers to handle messages, routes and callbacks.
Configuration options
:messages_backend- SeePow.Phoenix.Messagesfor more.:routes_backend- SeePow.Phoenix.Routesfor more.:controller_callbacks- SeePow.Extension.Phoenix.ControllerCallbacksfor more.
Link to this section Summary
Functions
Handles the controller action call
Fetches messages backend from configuration, or use fallback
Fetches router helpers module from connection
Fetches routes backend from configuration, or use fallback
Link to this section Functions
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.
messages(Plug.Conn.t(), atom()) :: atom()
Fetches messages backend from configuration, or use fallback.
Fetches router helpers module from connection.
Fetches routes backend from configuration, or use fallback.