Skip to content

Commit

Permalink
remove routeAuthHandler, fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphwetzel committed Dec 31, 2023
1 parent e6f048f commit 97e76d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ let si = require("systeminformation");

module.exports = function(RED) {

const routeAuthHandler = RED.auth.needsPermission("@ralphwetzel.systeminformation.write");

function si_node(config) {

RED.nodes.createNode(this,config);
Expand Down Expand Up @@ -143,7 +141,7 @@ module.exports = function(RED) {

RED.nodes.registerType("systeminformation", si_node);

RED.httpAdmin.get(`${apiRoot}/api`, routeAuthHandler, (req, res) => {
RED.httpAdmin.get(`${apiRoot}/api`, (req, res) => {
res.status(200).send(API);
})
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ralphwetzel/node-red-systeminformation",
"version": "1.0.2",
"version": "1.1.0",
"description": "Node-RED interface to systeminformation, the System Information Library for Node.JS",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 97e76d9

Please sign in to comment.