2024-03-18 16:12:41 -04:00
|
|
|
defmodule ChronoscopeWeb.API.V1.HealthController do
|
|
|
|
use ChronoscopeWeb, :controller
|
|
|
|
|
2024-03-23 12:19:13 -04:00
|
|
|
alias Chronoscope.NTS
|
|
|
|
|
2024-03-18 16:12:41 -04:00
|
|
|
def get(conn, _params) do
|
2024-03-23 12:19:13 -04:00
|
|
|
json(conn, %{healthy: NTS.healthy?()})
|
2024-03-18 16:12:41 -04:00
|
|
|
end
|
|
|
|
end
|