exports.apiview = (req, res) => { // User the connection connection.query('SELECT * FROM user WHERE status = "active"', (err, rows) => { res.status(200).send(rows); }); }