/**
* This controller handles the logic for any steps related routes.
* @module Controllers/StepsController
*/
const StepModel = require('../models/stepModel.js')
/**
* get all of the Steps
*/
exports.index = (req, res) => {
// initialize instance of StepModel
const step = new StepModel(req)
// read the Steps file and send it to client
step.getAll(req)
.then(result => {
res.send(result)
// todo add error handling
})
}