mirror of https://gitee.com/bigwinds/arangodb
added fm.configJson method
This commit is contained in:
parent
2cc44ba58e
commit
d8ac4046f8
|
@ -733,6 +733,9 @@ exports.run = function (args) {
|
|||
else if (type === 'config') {
|
||||
exports.config();
|
||||
}
|
||||
else if (type === 'configJson') {
|
||||
exports.configJson();
|
||||
}
|
||||
else if (type === 'list' || type === 'installed') {
|
||||
if (1 < args.length && args[1] === "prefix") {
|
||||
exports.list(true);
|
||||
|
@ -1063,6 +1066,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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue