mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Allow module to provide resources and automatically expose them
This commit is contained in:
@@ -301,6 +301,17 @@ module.exports = {
|
||||
*/
|
||||
getNodeExampleFlowPath: library.getExampleFlowPath,
|
||||
|
||||
/**
|
||||
* Gets the full path to a module's resource file
|
||||
* @param {String} module - the name of the module providing the resource file
|
||||
* @param {String} path - the relative path of the resource file
|
||||
* @return {String} the full path to the resource file
|
||||
*
|
||||
* @function
|
||||
* @memberof @node-red/registry
|
||||
*/
|
||||
getModuleResource: registry.getModuleResource,
|
||||
|
||||
checkFlowDependencies: externalModules.checkFlowDependencies,
|
||||
|
||||
registerPlugin: plugins.registerPlugin,
|
||||
@@ -309,7 +320,8 @@ module.exports = {
|
||||
getPluginList: plugins.getPluginList,
|
||||
getPluginConfigs: plugins.getPluginConfigs,
|
||||
exportPluginSettings: plugins.exportPluginSettings,
|
||||
|
||||
|
||||
|
||||
deprecated: require("./deprecated")
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user