1
0
Fork 0

added startupPath value to result of /_api/foxx/config

This commit is contained in:
Jan Steemann 2014-01-15 18:05:27 +01:00
parent 231e277113
commit cfdbb1996e
2 changed files with 12 additions and 1 deletions

View File

@ -272,7 +272,8 @@ actions.defineHttp({
callback : function (req, res) { callback : function (req, res) {
var result = { var result = {
appPath: module.appPath(), 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 }); actions.resultOk(req, res, actions.HTTP_OK, { result: result });

View File

@ -627,6 +627,16 @@ function require (path) {
return fs.join(startupPath, 'apps', 'system'); return fs.join(startupPath, 'apps', 'system');
}; };
////////////////////////////////////////////////////////////////////////////////
/// @brief startupPath
////////////////////////////////////////////////////////////////////////////////
Module.prototype.startupPath = function () {
'use strict';
return startupPath;
};
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// @brief compareVersions /// @brief compareVersions
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////