mirror of https://gitee.com/bigwinds/arangodb
added startupPath value to result of /_api/foxx/config
Conflicts: js/actions/api-foxx.js
This commit is contained in:
parent
db0c6dacae
commit
f760d056df
|
@ -273,7 +273,8 @@ actions.defineHttp({
|
|||
var result = {
|
||||
appPath: module.appPath(),
|
||||
devAppPath: internal.developmentMode ? module.devAppPath() : null,
|
||||
logFilePath: internal.logfilePath
|
||||
logFilePath: internal.logfilePath,
|
||||
startupPath: module.startupPath()
|
||||
};
|
||||
|
||||
actions.resultOk(req, res, actions.HTTP_OK, { result: result });
|
||||
|
|
|
@ -627,6 +627,16 @@ function require (path) {
|
|||
return fs.join(startupPath, 'apps', 'system');
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief startupPath
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Module.prototype.startupPath = function () {
|
||||
'use strict';
|
||||
|
||||
return startupPath;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief compareVersions
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue