Skip to content

Instantly share code, notes, and snippets.

@KamilLelonek
Last active July 20, 2019 15:10
Show Gist options
  • Save KamilLelonek/d5a161c47ea09aafe5d3603f3e496f5c to your computer and use it in GitHub Desktop.
Save KamilLelonek/d5a161c47ea09aafe5d3603f3e496f5c to your computer and use it in GitHub Desktop.
defmodule Healthchex.Probes.Liveness do
# ...
def call(%Plug.Conn{request_path: path} = conn, %{path: path, resp: resp}) do
conn
|> send_resp(200, resp)
|> halt()
end
def call(conn, _opts), do: conn
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment