async store(req, res) { console.log(req.body); if(!req.body.name) { res.status(400); res.json({ success: false, message: 'Bad request' }); } const conn = await getConnection(); const result = await createEmployee(conn, req.body); const id = Number(result.insertId) const employee = await getEmployee(conn, id); res.status(201) await res.json({ success: true, message: employee }); },