daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const authRouter = require('./routes/authRoutes');
  2.  
  3.  
  4. app.get('/getUsers', authRouter.authenticate, async (req, res) => {
  5.   const users = await User.find({});
  6.   res.send(users);
  7. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top