mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-21 10:15:55 +02:00
Add config getter
This commit is contained in:
parent
2055c76f98
commit
02d32a9e51
1 changed files with 5 additions and 0 deletions
|
@ -100,6 +100,11 @@ function init(configPath, options, cb) {
|
|||
],
|
||||
function complete(err, mergedConfig) {
|
||||
exports.config = mergedConfig;
|
||||
|
||||
exports.config.get = function(path) {
|
||||
return _.get(exports.config, path);
|
||||
};
|
||||
|
||||
return cb(err);
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue