Add route to get available languages

This commit is contained in:
Johannes Zellner
2020-11-18 00:10:06 +01:00
parent 2388fe5047
commit 784c8b2bd2
5 changed files with 39 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ exports = module.exports = {
uninitialize,
getConfig,
getLogs,
getLanguages,
reboot,
isRebootRequired,
@@ -279,6 +280,12 @@ function getLogs(unit, options, callback) {
return callback(null, transformStream);
}
function getLanguages(callback) {
assert.strictEqual(typeof callback, 'function');
callback(null, ['en', 'de', 'fr', 'it']);
}
function prepareDashboardDomain(domain, auditSource, callback) {
assert.strictEqual(typeof domain, 'string');
assert.strictEqual(typeof auditSource, 'object');