Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Mar 17, 2012
2 parents c66933a + 927a90b commit 1c53d8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion routes/api_jqgrid_users.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
apiJqgridUsersPost: function(req, res) {
console.log(req.body);
if (req.body.oper === 'del' ) {
api_users.delete(req, res);
api_users.deleteUser(req, res);
}
else if (req.body.oper === 'add'){
api_users.create(req, res);
Expand Down
4 changes: 2 additions & 2 deletions routes/api_users.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
"description":"update a given user",
"auth":false
},
"delete" : {
"deleteUser" : {
"url":"/api/users/:id",
"method":"delete",
"description":"delete your own user, attention: cant be undone",
Expand Down Expand Up @@ -88,7 +88,7 @@ module.exports = {
},

// DELETE /users/:id
delete: function(req, res) {
deleteUser: function(req, res) {
var theId = req.params.id ? req.params.id : req.body.id;
users.removeById(theId, function(err) {
if (err) {
Expand Down

0 comments on commit 1c53d8f

Please sign in to comment.