mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-16 12:57:32 +08:00
14 lines
335 B
Elixir
14 lines
335 B
Elixir
defmodule LivebookWeb.HealthController do
|
|
use LivebookWeb, :controller
|
|
|
|
def index(conn, _params) do
|
|
version = Application.spec(:livebook, :vsn) |> List.to_string()
|
|
|
|
conn
|
|
|> put_resp_header("Access-Control-Allow-Origin", "*")
|
|
|> json(%{
|
|
"application" => "livebook",
|
|
"version" => version
|
|
})
|
|
end
|
|
end
|