Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Redirect all posts to gets.
- */
- router.post(/^\/([^.]+)$/, function (req, res) {
- var path = (req.params[0]);
- res.redirect('/'+path);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement