Create HealthController that returns 200 OK for health checks. Route is outside browser pipeline to avoid SSL redirect and authentication requirements.
9 lines
194 B
Elixir
9 lines
194 B
Elixir
defmodule ToweropsWeb.HealthController do
|
|
use ToweropsWeb, :controller
|
|
|
|
def index(conn, _params) do
|
|
conn
|
|
|> put_resp_content_type("text/plain")
|
|
|> send_resp(200, "ok")
|
|
end
|
|
end
|