livebook/lib/livebook_web/controllers/health_controller.ex

13 lines
270 B
Elixir
Raw Normal View History

defmodule LivebookWeb.HealthController do
use LivebookWeb, :controller
def index(conn, _params) do
version = Application.spec(:livebook, :vsn) |> List.to_string()
json(conn, %{
"application" => "livebook",
"version" => version
})
end
end