-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Hello there,
I can't manage to extend the user model. I want to add a remote method "loginWithFacebook" but it doesn't show up in explorer. I used the Tweet model and its greet method as a template. But there has to be something different, as it still does not work.
module.exports = function (User) {
User.loginWithFacebook = function (cb) {
cb(null, 'Login with Facebook');
};
User.remoteMethod(
'loginWithFacebook',
{
http: {verb: 'post'}
}
);
};
Any clues here?
Thanks in advance,
Jens
Metadata
Metadata
Assignees
Labels
No labels