Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handler._users[data.method] is not a function #31

Open
yasir0707 opened this issue Apr 26, 2021 · 1 comment
Open

handler._users[data.method] is not a function #31

yasir0707 opened this issue Apr 26, 2021 · 1 comment

Comments

@yasir0707
Copy link

handler._usersdata.method;
image

@Blaviken31
Copy link

Hello there,
I was had the same error, I look al the file and find this and de botton
// users - get
handlers._users.post = function(data,callback){

};

// users - put
handlers._users.post = function(data,callback){

};

// users - delete
handlers._users.post = function(data,callback){

};

// Export the handlers
module.exports = handlers;

I had 4 POST method. just change each one for the respective method and it works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants