Skip to content

Commit

Permalink
More exampling
Browse files Browse the repository at this point in the history
  • Loading branch information
imlucas committed Jul 23, 2013
1 parent 3ddd747 commit 28e9479
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ to handle the actual validation and casting.
// req.form.val('username') and req.form.val('password')
});

app.post("/bookmark", BookmarkForm.middleware(), function(req, res){
saveBookmark(req.form.val('url'), req.form.val('tags'), req.form.val('created_on'), function(err, bookmark){
if(err) return next(err);
res.send(bookmark);
});
});

// ... some more code


Expand Down

0 comments on commit 28e9479

Please sign in to comment.