Created
September 9, 2013 01:17
-
-
Save ericelliott/6490245 to your computer and use it in GitHub Desktop.
Exporting routes for Express...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (app) { | |
app.post('/login', | |
passport.authenticate('local', { failureRedirect: '/login' }), | |
function(req, res) { | |
res.redirect('/'); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment