File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const Login = () => {
1717 setError ( '' ) ;
1818
1919 try {
20- const response = await fetch ( '__REACT_APP_API_URL__/authenticate' , {
20+ const response = await fetch ( '__REACT_APP_API_URL__/api/ authenticate' , {
2121 method : 'POST' ,
2222 headers : { 'Content-Type' : 'application/json' } ,
2323 body : JSON . stringify ( { username, password } ) ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const Register = () => {
2525 setLoading ( true ) ;
2626
2727 try {
28- const response = await fetch ( '__REACT_APP_API_URL__/register' , {
28+ const response = await fetch ( '__REACT_APP_API_URL__/api/ register' , {
2929 method : 'POST' ,
3030 headers : { 'Content-Type' : 'application/json' } ,
3131 body : JSON . stringify ( { username, password } ) ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const ResetPassword = () => {
3737 }
3838
3939 try {
40- const response = await fetch ( '__REACT_APP_API_URL__/reset-password' , {
40+ const response = await fetch ( '__REACT_APP_API_URL__/api/ reset-password' , {
4141 method : 'POST' ,
4242 headers : { 'Content-Type' : 'application/json' } ,
4343 body : JSON . stringify ( { username, newPassword } ) ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const VerifyUsername = () => {
1616 setSuccess ( false ) ;
1717
1818 try {
19- const response = await fetch ( `__REACT_APP_API_URL__/verify-username/${ username } ` , {
19+ const response = await fetch ( `__REACT_APP_API_URL__/api/ verify-username/${ username } ` , {
2020 method : 'GET' ,
2121 headers : { 'Content-Type' : 'application/json' } ,
2222 } ) ;
You can’t perform that action at this time.
0 commit comments