Skip to content

Commit

Permalink
removed deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
brianally committed Dec 23, 2014
1 parent a084f22 commit 00bffb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ module.exports = function(app, passport) {
failureFlash : true
}));
app.get('/api/signup/error', function(req, res) {
res.send(401, {error: req.flash('signupMessage')});
res.status(401).send({error: req.flash('signupMessage')});
});
app.get('/api/signup/success', function(req, res) {
res.send(200, {user: req.user});
res.status(200).send({user: req.user});
});

// Log in route
Expand All @@ -27,10 +27,10 @@ module.exports = function(app, passport) {
failureFlash : true
}));
app.get('/api/login/error', function(req, res) {
res.send(401, {error: req.flash('loginMessage')});
res.status(401).send({error: req.flash('loginMessage')});
});
app.get('/api/login/success', function(req, res) {
res.send(200, {user: req.user});
res.status(200).send({user: req.user});
});

};
Expand Down

0 comments on commit 00bffb9

Please sign in to comment.