14 lines
376 B
JavaScript
14 lines
376 B
JavaScript
module.exports = function (RED) {
|
|
function NextcloudConfigNode(n) {
|
|
RED.nodes.createNode(this, n)
|
|
this.address = n.address;
|
|
this.insecure = n.insecure;
|
|
}
|
|
RED.nodes.registerType('nextcloud-credentials', NextcloudConfigNode, {
|
|
credentials: {
|
|
user: { type: 'text' },
|
|
pass: { type: 'password' }
|
|
}
|
|
})
|
|
}
|