// apps/api/src/routes/scrape.routes.js

const express = require('express');
const router = express.Router();
const scrapeController = require('../controllers/scrape.controller');
const authMiddleware = require('../middleware/auth.middleware');
const adminMiddleware = require('../middleware/admin.middleware');

router.post('/trigger', authMiddleware, adminMiddleware, scrapeController.triggerScrape);
router.get('/status', authMiddleware, adminMiddleware, scrapeController.getScrapeStatus);

module.exports = router;