diff --git a/src/routes/measurement.ts b/src/routes/measurement.ts index 458c95f..2b6ce6f 100644 --- a/src/routes/measurement.ts +++ b/src/routes/measurement.ts @@ -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;