Remove version from the health endpoint (#601)

This commit is contained in:
Jonatan Kłosko 2021-10-18 18:28:19 +02:00 committed by GitHub
parent 5131a9e683
commit 3a8c11cb10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,13 +2,10 @@ 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
"application" => "livebook"
})
end
end