API-v4 route added: 'api/v4/faq' fixes #11801 (#11905)

* feat(api-v4): new /faq route added

* refactor(server): change of function name in libs/content.js
This commit is contained in:
Denys Dorokhov
2020-04-14 23:14:53 +03:00
committed by GitHub
parent 551abf292c
commit 186b929e59
8 changed files with 181 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
import nconf from 'nconf';
import { langCodes } from '../../libs/i18n';
import { CONTENT_CACHE_PATH, getLocalizedContent } from '../../libs/content';
import { CONTENT_CACHE_PATH, getLocalizedContentResponse } from '../../libs/content';
const IS_PROD = nconf.get('IS_PROD');
@@ -72,7 +72,7 @@ api.getContent = {
'Content-Type': 'application/json',
});
const jsonResString = getLocalizedContent(language);
const jsonResString = getLocalizedContentResponse(language);
res.status(200).send(jsonResString);
}
},