From 9f85d3927f68b98d8b9eb9fda25d62378131e528 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Sat, 18 Jul 2020 15:36:44 +0200 Subject: [PATCH] fix(content): include app version in response --- website/server/libs/content.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/server/libs/content.js b/website/server/libs/content.js index 13d4f31b9f..8328eb0ccb 100644 --- a/website/server/libs/content.js +++ b/website/server/libs/content.js @@ -1,6 +1,7 @@ import _ from 'lodash'; import path from 'path'; import common from '../../common'; +import packageInfo from '../../../package.json'; export const CONTENT_CACHE_PATH = path.join(__dirname, '/../../../content_cache/'); @@ -22,5 +23,5 @@ export function localizeContentData (data, langCode) { export function getLocalizedContentResponse (langCode) { const localizedContent = localizeContentData(common.content, langCode); - return `{"success": true, "data": ${JSON.stringify(localizedContent)}}`; + return `{"success": true, "data": ${JSON.stringify(localizedContent)}, "appVersion": "${packageInfo.version}"}`; }