Skip to content

Commit

Permalink
remove user
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jan 20, 2015
1 parent 86df4e7 commit 967188e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/v1/users.js
Expand Up @@ -28,7 +28,7 @@ module.exports = function(middleware) {
});
});

app.put('/user', apiMiddleware.requireUser, function(req, res) {
app.put('/', apiMiddleware.requireUser, function(req, res) {
var uid = req.user ? req.user.uid : 0;

This comment has been minimized.

Copy link
@julianlam

julianlam Jan 20, 2015

Member

There's no need for this, as the requireUser middleware will ensure that req.user.uid is always set 👍


Users.updateProfile(uid, req.body, function(err) {
Expand Down

0 comments on commit 967188e

Please sign in to comment.