import { Router } from 'express';
import { checkInStudent, getTodayAttendanceLogs } from '../controllers/attendance.controller.js';
import { staffProtected } from '../middlewares/protected.js';

const router = Router();

// Check in student attendance via Barcode / QR
router.post('/check-in', staffProtected, checkInStudent);
router.post('/', staffProtected, checkInStudent);

// Get today's attendance logs
router.get('/today', staffProtected, getTodayAttendanceLogs);

export default router;
