mirror of https://gitee.com/bigwinds/arangodb
added startupPath value to result of /_api/foxx/config
This commit is contained in:
parent
231e277113
commit
cfdbb1996e
|
@ -272,7 +272,8 @@ actions.defineHttp({
|
|||
callback : function (req, res) {
|
||||
var result = {
|
||||
appPath: module.appPath(),
|
||||
devAppPath: internal.developmentMode ? module.devAppPath() : null
|
||||
devAppPath: internal.developmentMode ? module.devAppPath() : null,
|
||||
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