import { Router } from 'express';
import { analyze, detection, installerTypes } from '../controllers/packagingController.js';
import { requireAuth } from '../middleware/auth.js';

export const packagingRoutes = Router();

// Phase 1 installer intelligence: detect technology, recommend silent commands,
// and generate detection rules.
packagingRoutes.get('/installer-types', requireAuth, installerTypes);
packagingRoutes.post('/analyze', requireAuth, analyze);
packagingRoutes.post('/detection', requireAuth, detection);
