import { Router } from 'express';
import { StudioController } from '../controllers/studioController';
const router = Router();
const controller = new StudioController();
// GET /api/studio/url - Get Remotion Studio URL (MCP: get_studio_url)
router.get('/url', controller.getStudioUrl);
// GET /api/studio/exports - Get export directory (MCP: get_export_directory)
router.get('/exports', controller.getExportDirectory);
// POST /api/studio/exports/open - Open export directory (MCP: open_export_directory)
router.post('/exports/open', controller.openExportDirectory);
// POST /api/studio/root-sync - Sync Root.tsx (MCP: auto_sync)
router.post('/root-sync', controller.syncRoot);
// POST /api/studio/rebuild - Rebuild compositions (MCP: rebuild_compositions)
router.post('/rebuild', controller.rebuildCompositions);
// POST /api/studio/cleanup - Cleanup broken imports (MCP: cleanup_broken_imports)
router.post('/cleanup', controller.cleanupBrokenImports);
export { router as studioRoutes };