This repository was archived by the owner on Feb 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ const Login = () => {
50
50
Second step happens at the server side; where you call your
51
51
application logic to save the user's info in some kind of database.
52
52
*/
53
- const resFromGoServer = await fetch ( "https://scrappy-secure-go-twitter-api.wl.r.appspot.com/login " , {
53
+ const resFromGoServer = await fetch ( "https://scrappy-secure-go-twitter-api.wl.r.appspot.com/save-user-info " , {
54
54
method : "POST" ,
55
55
headers : {
56
56
"Content-Type" : "application/json" ,
@@ -61,7 +61,7 @@ const Login = () => {
61
61
62
62
if ( resFromGoServer . status === 200 ) {
63
63
console . log (
64
- "YAY, we were able to make a request to the Go server /login endpoint: " ,
64
+ "YAY, we were able to make a request to the Go server /save-user-info endpoint: " ,
65
65
resFromGoServer
66
66
) ;
67
67
@@ -72,7 +72,7 @@ const Login = () => {
72
72
Router . push ( "/" ) ;
73
73
} else {
74
74
throw new Error (
75
- `Oh no, we ran into an error while calling the server's login endpoint: ` ,
75
+ `Oh no, we ran into an error while calling the server's /save-user-info endpoint: ` ,
76
76
await resFromGoServer . text ( )
77
77
) ;
78
78
}
You can’t perform that action at this time.
0 commit comments