Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 328 Bytes
defmodule Scim.Web.Plug do
def init(opts) do
if Keyword.get(opts, :behavior) == nil do
raise "#{__MODULE__} must be forwarded to with behavior"
end
opts
end
def call(conn, opts) do
conn
|> Plug.Conn.assign(:behavior, Keyword.fetch!(opts, :behavior))
|> Scim.Web.Router.call(opts)
end
end
You can’t perform that action at this time.