Files
nextcloud-nodered-ocs-api/nodes/nextcloud-ocs/nextcloud-config.js
T

15 lines
475 B
JavaScript
Raw Normal View History

module.exports = function(RED) {
function NextcloudConfigNode(config) {
RED.nodes.createNode(this, config);
this.name = config.name;
this.baseUrl = config.baseUrl;
this.username = config.username;
this.password = config.password;
}
RED.nodes.registerType("nextcloud-config", NextcloudConfigNode, {
credentials: {
username: { type: "text" },
password: { type: "password" }
}
});
}