Packages

RIG, the Reactive Interaction Gateway, provides an easy (and scaleable) way to push messages from backend services to connected frontends (and vice versa).

Current section

Files

Jump to
rig lib rig_web endpoint.ex
Raw

lib/rig_web/endpoint.ex

defmodule RigWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :rig
socket "/socket", RigWeb.Presence.Socket
plug Plug.RequestId
plug Plug.Logger
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
pass: ["*/*"],
json_decoder: Poison
plug Plug.MethodOverride
plug Plug.Head
plug RigWeb.Router
@doc """
Initialize the endpoint configuration.
Invoked when the endpoint supervisor starts, allows dynamically
configuring the endpoint from system environment or other runtime sources.
"""
@spec init(:supervisor, Keyword.t) :: {:ok, Keyword.t}
def init(:supervisor, config) do
Confex.Resolver.resolve(config)
end
end