From 7c60fd16dec91b3c1cc053238edc6eeb4b5fcd9a Mon Sep 17 00:00:00 2001 From: Moe Date: Sun, 24 May 2020 13:55:48 -0700 Subject: [PATCH] Update webServerPaths.js --- libs/webServerPaths.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/webServerPaths.js b/libs/webServerPaths.js index ee897eaa..71b98363 100644 --- a/libs/webServerPaths.js +++ b/libs/webServerPaths.js @@ -1031,7 +1031,6 @@ module.exports = function(s,config,lang,app,io){ config.webPaths.apiPrefix+':auth/events/:ke', config.webPaths.apiPrefix+':auth/events/:ke/:id' ], function (req,res){ - req.ret={ok:false}; res.setHeader('Content-Type', 'application/json'); s.auth(req.params,function(user){ const userDetails = user.details @@ -1070,7 +1069,6 @@ module.exports = function(s,config,lang,app,io){ config.webPaths.apiPrefix+':auth/logs/:ke', config.webPaths.apiPrefix+':auth/logs/:ke/:id' ], function (req,res){ - req.ret={ok:false}; res.setHeader('Content-Type', 'application/json'); s.auth(req.params,function(user){ const userDetails = user.details @@ -1667,7 +1665,7 @@ module.exports = function(s,config,lang,app,io){ counted: Object.keys(selectedObject).length, tags: selectedObject, })) - },res,req); + },res,req) }) /** * API : Object Detection Counter Status @@ -1704,7 +1702,7 @@ module.exports = function(s,config,lang,app,io){ },(response) => { res.end(s.prettyPrint(response)) }) - },res,req); + },res,req) }) /** * API : Camera PTZ Controller