From 231e2771135c3326d19483deb2470400c59167cb Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Wed, 15 Jan 2014 17:54:59 +0100 Subject: [PATCH] added fm.configJson method --- js/client/modules/org/arangodb/foxx/manager.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/js/client/modules/org/arangodb/foxx/manager.js b/js/client/modules/org/arangodb/foxx/manager.js index 40e1c9f315..c085430a44 100644 --- a/js/client/modules/org/arangodb/foxx/manager.js +++ b/js/client/modules/org/arangodb/foxx/manager.js @@ -734,6 +734,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); @@ -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 ////////////////////////////////////////////////////////////////////////////////