Skip to content

Instantly share code, notes, and snippets.

@lubien
Created May 12, 2024 10:03
Show Gist options
  • Save lubien/99832256b26177587e3930d0e6a35d8e to your computer and use it in GitHub Desktop.
Save lubien/99832256b26177587e3930d0e6a35d8e to your computer and use it in GitHub Desktop.
defmodule AlchemistWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :alchemist
def call(conn, opts) do
conn
|> AlchemistWeb.ReplayPlug.call(AlchemistWeb.ReplayPlug.init(nil))
|> case do
%{halted: true} = conn -> conn
conn -> super(conn, opts)
end
end
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment