const express = require('express');
const router = express.Router();
const {
  checkDeviceBlockStatus,
  reportSuspiciousActivity
} = require('../controllers/deviceSecurityController');
const { checkDeviceBlock } = require('../middleware/deviceBlockMiddleware');

// @route   POST /api/security/check-device
// @desc    Проверка блокировки устройства
// @access  Public
router.post('/check-device', checkDeviceBlockStatus);

// @route   POST /api/security/report-suspicious
// @desc    Отчет о подозрительной активности
// @access  Private (требует device fingerprint)
router.post('/report-suspicious', checkDeviceBlock, reportSuspiciousActivity);

module.exports = router;