1
0
Fork 0

added fm.configJson method

This commit is contained in:
Jan Steemann 2014-01-15 17:54:59 +01:00
parent 39ea33a68e
commit 231e277113
1 changed files with 17 additions and 0 deletions

View File

@ -734,6 +734,9 @@ exports.run = function (args) {
else if (type === 'config') { else if (type === 'config') {
exports.config(); exports.config();
} }
else if (type === 'configJson') {
exports.configJson();
}
else if (type === 'list' || type === 'installed') { else if (type === 'list' || type === 'installed') {
if (1 < args.length && args[1] === "prefix") { if (1 < args.length && args[1] === "prefix") {
exports.list(true); exports.list(true);
@ -1064,6 +1067,20 @@ exports.config = function () {
} }
}; };
////////////////////////////////////////////////////////////////////////////////
/// @brief returns configuration from the server
////////////////////////////////////////////////////////////////////////////////
exports.configJson = function () {
'use strict';
var res = arango.GET("/_admin/foxx/config"), name;
arangosh.checkRequestResult(res);
return res.result;
};
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// @brief returns all installed FOXX applications /// @brief returns all installed FOXX applications
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////