mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-16 12:57:32 +08:00
13 lines
270 B
Elixir
13 lines
270 B
Elixir
|
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
|