Extract data from request
This commit is contained in:
		| @@ -126,6 +126,11 @@ router.post('/measurement/new', async (req, res, next) => { | ||||
| 	}); | ||||
| }); | ||||
|  | ||||
| router.post('/measurement/new/raspi', (req, res) => { | ||||
| 	if (!req.auth(res, Object.values(globals.levels))) return; | ||||
| 	// Needed data to rebuild measurement structure | ||||
| 	JSON.parse(String.fromCodePoint(...req._readableState.buffer.head.data)).value; | ||||
| }); | ||||
|  | ||||
| module.exports = router; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user