dsi-icl/optimise

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

Summary

Maintainability
A
35 mins
Test Coverage
/**
 * Route clinical events
 * @description Redirect request from /clinicalEvents to the proper controller call
 */

import express from 'express';

import CeController from '../controllers/ceController';

const ce = express();

ce.route('/')
    .post(CeController.createCe)
    .put(CeController.updateCe)
    .delete(CeController.deleteCe);

export default ce;