mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Update all nodes to credentials system and auth middleware
This commit is contained in:
@@ -231,7 +231,7 @@ module.exports = function(RED) {
|
||||
}
|
||||
RED.nodes.registerType("rpi-pibrella out",PibrellaOut);
|
||||
|
||||
RED.httpAdmin.get('/rpi-pibpins/:id',function(req,res) {
|
||||
res.send( JSON.stringify(pinsInUse) );
|
||||
RED.httpAdmin.get('/rpi-pibpins/:id',RED.auth.needsPermission('rpi-pibrella.read'),function(req,res) {
|
||||
res.json(pinsInUse);
|
||||
});
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-pibrella",
|
||||
"version" : "0.0.5",
|
||||
"version" : "0.0.6",
|
||||
"description" : "A Node-RED node to read from and write to a Pibrella Raspberry Pi add-on board",
|
||||
"dependencies" : {
|
||||
},
|
||||
|
@@ -248,11 +248,9 @@ module.exports = function(RED) {
|
||||
|
||||
RED.nodes.registerType("blinkstick",BlinkStick);
|
||||
|
||||
RED.httpAdmin.get("/blinksticklist",function(req,res) {
|
||||
RED.httpAdmin.get("/blinksticklist", RED.auth.needsPermission("blinkstick.read"), function(req,res) {
|
||||
blinkstick.findAllSerials(function(serials) {
|
||||
res.writeHead(200, {'Content-Type': 'application/json'});
|
||||
res.write(JSON.stringify(serials));
|
||||
res.end();
|
||||
res.json(serials);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-blinkstick",
|
||||
"version" : "0.1.1",
|
||||
"version" : "0.1.2",
|
||||
"description" : "A Node-RED node to control a Blinkstick",
|
||||
"dependencies" : {
|
||||
"blinkstick" : "1.1.*"
|
||||
|
Reference in New Issue
Block a user