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" : {
|
||||
},
|
||||
|
Reference in New Issue
Block a user