Skip to content

Instantly share code, notes, and snippets.

@optikalefx
Created October 4, 2013 02:02
Show Gist options
  • Save optikalefx/6819923 to your computer and use it in GitHub Desktop.
Save optikalefx/6819923 to your computer and use it in GitHub Desktop.
module.exports = {
add(req, res) {
var data = req.body;
app.models.file.upload(req.files).then(function(result) {
res.json(result);
});
},
"test/:thing": {
get(req,res,next) {
res.json(req.params);
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment