userController.js 263 B

12345678910111213
  1. // userController.js
  2. const userModel = require('../models/userModel');
  3. exports.getAllUsers = (req, res) => {
  4. userModel.getAllUsers((err, results) => {
  5. // if (err) throw err;
  6. res.json({});
  7. // console.log("asdfasdf");
  8. // res.json({});
  9. });
  10. };