Current section
Files
Jump to
Current section
Files
lib/hooksniff/resources/health.ex
defmodule HookSniff.Health do
@moduledoc "API health check."
alias HookSniff.Client
@doc "Check API health"
@spec check(HookSniff.t()) :: {:ok, map()} | {:error, term()}
def check(client), do: Client.request(:get, "/health", nil, client)
end