mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
14 lines
251 B
Elixir
14 lines
251 B
Elixir
defmodule TeslaMateWeb.HealthCheck do
|
|
import Plug.Conn
|
|
|
|
def init(opts), do: opts
|
|
|
|
def call(%Plug.Conn{request_path: "/health_check"} = conn, _opts) do
|
|
conn
|
|
|> send_resp(200, "")
|
|
|> halt()
|
|
end
|
|
|
|
def call(conn, _opts), do: conn
|
|
end
|