import { Router } from 'express';
import * as projectController from '../controllers/projectController.js';

const router = Router();

// Rotas com contexto de usuário (leitura)
router.get('/', projectController.getAllProjects);
router.get('/dashboard', projectController.getDashboardProjects);
router.get('/:id', projectController.getProjectById);

// Rotas de modificação de projetos
router.post('/', projectController.createProject);
router.put('/:id', projectController.updateProject);
router.delete('/:id', projectController.deleteProject);
router.patch('/:id/archive', projectController.archiveProject);

export default router;
