Skip to content

Commit

Permalink
Add configurator hashed version to /api/version endpoint payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Sanchez committed Sep 10, 2024
1 parent 8c187e4 commit 1d75b8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/gateway/lib/gateway/controllers/health_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ defmodule Gateway.Controllers.HealthController do
end

def version(conn, _params) do
arena_version = Application.spec(:arena, :vsn) |> to_string()
configurator_version = GameBackend.Configuration.get_configuration_hash_version()

conn
|> put_status(:ok)
|> text(Application.spec(:arena, :vsn))
|> text(arena_version <> "." <> configurator_version)
end
end

0 comments on commit 1d75b8d

Please sign in to comment.