const EmployeeController = { store(req, res) { if(!req.body.name) { res.status(400); res.json({ success: false, message: 'Bad request' }); } res.status(200) res.json(req.body.name ); } } module.exports = EmployeeController;