towerops/lib/towerops_web/controllers/health_controller.ex
Graham McIntire 72c260e122
Add /health endpoint for Kubernetes probes
Create HealthController that returns 200 OK for health checks.
Route is outside browser pipeline to avoid SSL redirect and
authentication requirements.
2026-01-04 10:56:03 -06:00

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