Current section

Files

Jump to
potionx lib potionx plugs absinthe_plug.ex
Raw

lib/potionx/plugs/absinthe_plug.ex

defmodule Potionx.Plug.Absinthe do
@behaviour Plug
def init(opts), do: opts
def call(%{assigns: %{context: ctx}} = conn, _) do
Absinthe.Plug.put_options(
conn,
context: ctx
)
end
end