Skip to content
Snippets Groups Projects
Commit 25060ca7 authored by L4168's avatar L4168
Browse files

.env fix

parent 547339fe
No related branches found
No related tags found
No related merge requests found
Pipeline #64579 failed
...@@ -38,7 +38,7 @@ export class LoginForm extends React.Component { ...@@ -38,7 +38,7 @@ export class LoginForm extends React.Component {
e.preventDefault(); e.preventDefault();
// Send login info to the server // Send login info to the server
fetch(`${process.env.REACT_APP_URL}/user/login`, { fetch(`${process.env.REACT_APP_API_URL}/user/login`, {
method: 'POST', method: 'POST',
headers: { headers: {
Accept: 'application/json', Accept: 'application/json',
......
...@@ -44,7 +44,7 @@ export class RegisterForm extends React.Component { ...@@ -44,7 +44,7 @@ export class RegisterForm extends React.Component {
this.handleError('Passwords do not match'); this.handleError('Passwords do not match');
} else { } else {
// Send register info to the server // Send register info to the server
fetch(`${process.env.REACT_APP_URL}/user/register`, { fetch(`${process.env.REACT_APP_API_URL}/user/register`, {
method: 'POST', method: 'POST',
headers: { headers: {
Accept: 'application/json', Accept: 'application/json',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment