const EmployeeController = { index(req, res) { try { EmployeeController.tryIndex(req, res); } catch (error) { res.status(500); res.json({msg: error}); } }, tryIndex(req, res) { res.status(200); res.json({msg: 'működik'}); } } module.exports = EmployeeController;