const router = require('express').Router();
const db = require('../store/db');

// Endpoint per ricevere dati dal kiosk
router.post('/data', async (req, res) => {
    const { session_id, sensor_code, value, timestamp } = req.body;
    if (!session_id || !sensor_code || value === undefined) {
        return res.status(400).json({ error: 'Missing required fields' });
    }
});

module.exports = router;