Skip to content

Instantly share code, notes, and snippets.

@devjin0617
Created January 4, 2017 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devjin0617/a24f5ecec52fb41f22117b8b3519a8e5 to your computer and use it in GitHub Desktop.
Save devjin0617/a24f5ecec52fb41f22117b8b3519a8e5 to your computer and use it in GitHub Desktop.
var Realm = require('../lib/realm.js');
router.get('/', (req, res, next) => {
var users = Realm.UserRealm
.objects('User')
.sorted('date', true);
res.send({
success : true,
data: users
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment