dsi-icl/optimise

View on GitHub
packages/optimise-core/src/routes/comorbidityRoute.js

Summary

Maintainability
A
35 mins
Test Coverage
/**
 * Route comorbidity
 * @description Redirect request from /comorbidities to the proper controller call
 */

import express from 'express';

import ComorbidityController from '../controllers/comorbidityController';

const comorbidity = express();

comorbidity.route('/')
    .post(ComorbidityController.createComorbidity)
    .put(ComorbidityController.editComorbidity)
    .delete(ComorbidityController.deleteComorbidity);

export default comorbidity;