const express = require('express');
const router = express.Router();
const {
    getAllRpnLikelihood,
    createRpnLikelihood,
    updateRpnLikelihood,
    deleteRpnLikelihood,
    getAllRpnSeverity,
    createRpnSeverity,
    updateRpnSeverity,
    deleteRpnSeverity
} = require('../controllers/rpnController');

// RPN Likelihood routes
router.get('/likelihood', getAllRpnLikelihood);
router.post('/likelihood', createRpnLikelihood);
router.put('/likelihood', updateRpnLikelihood);
router.delete('/likelihood/:likelihood_of_harm', deleteRpnLikelihood);

// RPN Severity routes
router.get('/severity', getAllRpnSeverity);
router.post('/severity', createRpnSeverity);
router.put('/severity', updateRpnSeverity);
router.delete('/severity/:severity_of_harm', deleteRpnSeverity);

module.exports = router;

