1
0
Fork 0

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

Conflicts:
	js/actions/api-foxx.js
This commit is contained in:
Jan Steemann 2014-01-15 18:05:27 +01:00
parent db0c6dacae
commit f760d056df
2 changed files with 12 additions and 1 deletions

View File

@ -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 });

View File

@ -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
////////////////////////////////////////////////////////////////////////////////