Permalink
Browse files

Add a fake prices endpoint

  • Loading branch information...
1 parent da81b83 commit 2c1f1f84e5d4f6124c158b8b0b5c8088663f3513 @evdb evdb committed Dec 25, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 index.js
View
@@ -22,6 +22,16 @@ module.exports = function () {
});
});
+ // fake handler for the books endpoints
+ app.get("/books/:isbn/prices", function (req, res) {
+ var isbn = req.param("isbn");
+ res.jsonp([
+ { price: 56.78 },
+ { price: 12.34 },
+ { price: 34.56 },
+ ]);
+ });
+
// 404 everything
app.all("*", function (req, res) {
res.status(404);

0 comments on commit 2c1f1f8

Please sign in to comment.