dsi-icl/optimise

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

Summary

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

import express from 'express';

import ConcomitantMedController from '../controllers/concomitantMedController';

const concomitantMed = express();

concomitantMed.route('/')
    .post(ConcomitantMedController.createConcomitantMed)
    .put(ConcomitantMedController.editConcomitantMed)
    .delete(ConcomitantMedController.deleteConcomitantMed);

export default concomitantMed;