Example #1
0
 app.get("/keys", (req, res) => {
   utils.paginate(Key.orderBy({index: r.desc("createdAt")}), req, res);
 });
Example #2
0
 app.get("/", (req, res) => {
   Score.orderBy({index: r.desc("createdAt")}).nth(0).default(null).run().then((latest) => {
     res.json(latest);
   }).error(utils.handleError(res));
 });