daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest May 16th, 2018 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Router from 'express-promise-router';
  2. const router = new Router();
  3. import Currency from '../models/Currency';
  4.  
  5. router.get('/',
  6.   async (req, res) => {
  7.     const currencies = await Currency.find({}).sort({ cc: -1 });
  8.     res.json(currencies);
  9.   }
  10. );
  11.  
  12. export default router;
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