mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-21 21:36:17 +08:00
Remove version from the health endpoint (#601)
This commit is contained in:
parent
5131a9e683
commit
3a8c11cb10
1 changed files with 1 additions and 4 deletions
|
@ -2,13 +2,10 @@ defmodule LivebookWeb.HealthController do
|
||||||
use LivebookWeb, :controller
|
use LivebookWeb, :controller
|
||||||
|
|
||||||
def index(conn, _params) do
|
def index(conn, _params) do
|
||||||
version = Application.spec(:livebook, :vsn) |> List.to_string()
|
|
||||||
|
|
||||||
conn
|
conn
|
||||||
|> put_resp_header("Access-Control-Allow-Origin", "*")
|
|> put_resp_header("Access-Control-Allow-Origin", "*")
|
||||||
|> json(%{
|
|> json(%{
|
||||||
"application" => "livebook",
|
"application" => "livebook"
|
||||||
"version" => version
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue