File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class UserApi {
23
23
}
24
24
25
25
login ( email , password ) {
26
- const url = `${ this . basePath } /api/v1/users/auth ` ;
26
+ const url = `${ this . basePath } /api/v1/login ` ;
27
27
28
28
return reqwest ( { url : url , method : 'post' , type : 'json' ,
29
29
contentType : 'application/json' ,
@@ -34,19 +34,21 @@ class UserApi {
34
34
}
35
35
36
36
register ( name , email , password ) {
37
- const url = `${ this . basePath } /api/v1/users ` ;
37
+ const url = `${ this . basePath } /api/v1/register ` ;
38
38
39
39
return reqwest ( { url : url , method : 'post' , type : 'json' ,
40
40
contentType : 'application/json' ,
41
41
data : JSON . stringify ( {
42
- name : name ,
42
+ firstName : name ,
43
+ lastName : name ,
43
44
email : email ,
45
+ phone : "1" ,
44
46
password : password ,
45
47
} ) } ) ;
46
48
}
47
49
48
50
registerSocialUser ( name , email ) {
49
- const url = `${ this . basePath } /api/v1/users /social` ;
51
+ const url = `${ this . basePath } /api/v1/login /social` ;
50
52
51
53
return reqwest ( { url : url , method : 'post' , type : 'json' ,
52
54
contentType : 'application/json' ,
You can’t perform that action at this time.
0 commit comments