kopia lustrzana https://github.com/fediversespace/fediverse.space
14 wiersze
245 B
Elixir
14 wiersze
245 B
Elixir
![]() |
defmodule BackendWeb.Healthcheck do
|
||
|
import Plug.Conn
|
||
|
|
||
|
def init(opts), do: opts
|
||
|
|
||
|
def call(%Plug.Conn{request_path: "/health"} = conn, _opts) do
|
||
|
conn
|
||
|
|> send_resp(200, "OK")
|
||
|
|> halt()
|
||
|
end
|
||
|
|
||
|
def call(conn, _opts), do: conn
|
||
|
end
|