Skip to content

Instantly share code, notes, and snippets.

@Hogent
Created May 15, 2013 12:00
Show Gist options
  • Save Hogent/5583483 to your computer and use it in GitHub Desktop.
Save Hogent/5583483 to your computer and use it in GitHub Desktop.
routes
//routes/notes.js
exports.findAll = function(req, res) {
res.send([{note:'note1'}, {note:'note2'}, {note:'note3'}]);
};
exports.findById = function(req, res) {
res.send({id:req.params.id, title: "note title", description: "note description"});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment