Add route to get available languages
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user