File tree 1 file changed +3
-7
lines changed
frontend/src/services/userService
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function login(username, password) {
14
14
body : JSON . stringify ( { username, password } )
15
15
} ;
16
16
17
- return fetch ( 'http://localhost:3000/users /authenticate' , requestOptions )
17
+ return fetch ( 'http://localhost:7777/user /authenticate' , requestOptions )
18
18
. then ( handleResponse )
19
19
. then ( user => {
20
20
// login successful if there's a jwt token in the response
@@ -38,21 +38,17 @@ function getAll() {
38
38
headers : authHeader ( )
39
39
} ;
40
40
41
- return fetch ( 'http://localhost:3000 /users' , requestOptions ) . then ( handleResponse ) ;
41
+ return fetch ( 'http://localhost:7777 /users' , requestOptions ) . then ( handleResponse ) ;
42
42
}
43
43
44
44
function getUserDetailed ( userId ) {
45
45
const requestOptions = {
46
- << < << << HEAD
47
- method: 'POST' ,
48
- = === ===
49
46
method : 'GET' ,
50
- > >>> >>> 2 d0f897a19bafd5cd48b436f3e72cce3864d0c25
51
47
headers : authHeader ( ) ,
52
48
body : JSON . stringify ( { userId } )
53
49
} ;
54
50
55
- return fetch ( 'http://localhost:3000 /user' , requestOptions ) . then ( handleResponse ) ;
51
+ return fetch ( 'http://localhost:7777 /user' , requestOptions ) . then ( handleResponse ) ;
56
52
}
57
53
58
54
function handleResponse ( response ) {
You can’t perform that action at this time.
0 commit comments