From be386cb2cf1853cb7658b6c17196965efc046fe9 Mon Sep 17 00:00:00 2001 From: Thong Kuah Date: Wed, 30 Jan 2019 22:26:52 +1300 Subject: Expose app version to frontend --- app/serializers/cluster_application_entity.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app') diff --git a/app/serializers/cluster_application_entity.rb b/app/serializers/cluster_application_entity.rb index 7b1a0be75ca..62b23a889c8 100644 --- a/app/serializers/cluster_application_entity.rb +++ b/app/serializers/cluster_application_entity.rb @@ -4,6 +4,7 @@ class ClusterApplicationEntity < Grape::Entity expose :name expose :status_name, as: :status expose :status_reason + expose :version expose :external_ip, if: -> (e, _) { e.respond_to?(:external_ip) } expose :hostname, if: -> (e, _) { e.respond_to?(:hostname) } expose :email, if: -> (e, _) { e.respond_to?(:email) } -- cgit v1.2.3