feat: export/import ZIP — garantie_types + referentiel_notation (fichier complet)

This commit is contained in:
2026-06-13 22:07:40 +02:00
parent 611dfe82f0
commit e6d2463a91
+10 -1
View File
@@ -1071,4 +1071,13 @@ router.put('/notation/:notationId', (req, res, next) => {
});
// DELETE /api/referentiel/notation/:notationId
rou
router.delete('/notation/:notationId', (req, res, next) => {
try {
const existing = db.prepare('SELECT id FROM referentiel_notation WHERE id = ?').get(req.params.notationId);
if (!existing) throw new HttpError(404, 'Critere introuvable');
db.prepare('DELETE FROM referentiel_notation WHERE id = ?').run(req.params.notationId);
res.json({ deleted: true });
} catch (e) { next(e); }
});
export default router;