Skip to content

Commit c2a60fa

Browse files
Fix url
1 parent 6e80696 commit c2a60fa

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

frontend/src/components/Login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 }),

frontend/src/components/Register.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 }),

frontend/src/components/ResetPassword.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 }),

frontend/src/components/VerifyUsername.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)