const express = require('express');
const router = express.Router();
const statusController = require('../controllers/statusController');

// Update status endpoint with notifications
router.post('/update-status', (req, res) => {
    // Get sendNotification function from request (injected by middleware)
    const sendNotification = req.sendNotification;
    statusController.updateStatus(req, res, sendNotification);
});

module.exports = router;



