dsi-icl/optimise

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

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Route available fields
 * @description Redirect request from /available/{} to the proper controller call
 */

import express from 'express';

import AvailableFieldController from '../controllers/availableFieldController';

const fields = express();

fields.route('/:dataType')
    .get(AvailableFieldController.getFields);

export default fields;