Closed tankerdream closed 8 years ago
In the setupCoapRoutes.js line 302
coapRouter.post('/data/:uuid', function(req, res){ authorizeRequest(req, res, function(fromDevice){ skynet.sendActivity(getActivity('data', req, fromDevice)); delete req.params.token; req.params.ipAddress = getIP(req); saveDataIfAuthorized(skynet.sendMessage, fromDevice, req.params.uuid, req.params, function(error, saved){ res.status(201).end(); }); }); });
There seems to be no function getIP() and saveDataIfAuthorized(),did I miss anything?
getIP()
saveDataIfAuthorized()
In the setupCoapRoutes.js line 302
There seems to be no function
getIP()
andsaveDataIfAuthorized()
,did I miss anything?