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

const router = Router();

// Public routes (read-only)
router.get('/project/:projectId', appRecordController.getApplicationRecordsByProject);

// Modification routes
router.post('/', appRecordController.createApplicationRecord);
router.put('/:id', appRecordController.updateApplicationRecord);
router.delete('/:id', appRecordController.deleteApplicationRecord);

export default router;
