📅  最后修改于: 2022-03-11 15:03:22.194000             🧑  作者: Mango
exports.apiview = (req, res) => {
// User the connection
connection.query('SELECT * FROM user WHERE status = "active"', (err, rows) => {
res.status(200).send(rows);
});
}