Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Router from 'express-promise-router';
- const router = new Router();
- import Currency from '../models/Currency';
- router.get('/',
- async (req, res) => {
- const currencies = await Currency.find({}).sort({ cc: -1 });
- res.json(currencies);
- }
- );
- export default router;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement