Skip to content

Commit 5f3d147

Browse files
committed
Replaced IP with localhost
1 parent b0349f5 commit 5f3d147

File tree

17 files changed

+25
-25
lines changed

17 files changed

+25
-25
lines changed

web-app/client/src/components/consumerDefaultPage/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const CustomerDashboard = (props) => {
2525
let token = localStorage.getItem('token');
2626
let id = localStorage.getItem('id');
2727
let entityType = localStorage.getItem('entity-type');
28-
fetch('http://192.168.43.54:8090/auth/consumer/consumer/' + id, {
28+
fetch('http://localhost:8090/auth/consumer/consumer/' + id, {
2929
method: 'GET',
3030
headers: {
3131
'Accept': 'application/json',

web-app/client/src/components/createConsumer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const CreateConsumer = (props) => {
2525
let token = localStorage.getItem('token');
2626
let entityUserId = localStorage.getItem('id');
2727
let entityId = localStorage.getItem('entity-id');
28-
let url = "http://192.168.43.54:8090/auth/consumers/consumer";
28+
let url = "http://localhost:8090/auth/consumers/consumer";
2929
fetch(url, {
3030
method: "POST",
3131
headers: {

web-app/client/src/components/createEntity/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const CreateEntity = (props) => {
1818
console.log("add new movie", externalId, type, earnRate);
1919
let values = { externalId: externalId, type: type, earnRate: earnRate };
2020
let token = localStorage.getItem('token');
21-
let url = "http://192.168.43.54:8090/entities";
21+
let url = "http://localhost:8090/entities";
2222
fetch(url, {
2323
method: "POST",
2424
headers: {

web-app/client/src/components/createEntityUser/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const CreateEntityUser = (props) => {
2626

2727
const fetchEntityDataAction = () => {
2828
let token = localStorage.getItem("token");
29-
fetch("http://192.168.43.54:8090/entities", {
29+
fetch("http://localhost:8090/entities", {
3030
method: "GET",
3131
headers: {
3232
"x-access-token": token,
@@ -59,7 +59,7 @@ const CreateEntityUser = (props) => {
5959
|| entityType === 'retailer'
6060
|| entityType === 'distributor'
6161
? 'middlemen' : 'manufacturer';
62-
let url = "http://192.168.43.54:8090/auth/users/" + toPost;
62+
let url = "http://localhost:8090/auth/users/" + toPost;
6363
fetch(url, {
6464
method: "POST",
6565
headers: {

web-app/client/src/components/defaultpage/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const Dashboard = (props) => {
2323

2424
const fetchUserDataAction = () => {
2525
let token = localStorage.getItem('token');
26-
fetch('http://192.168.43.54:8090/entities/Entity1', {
26+
fetch('http://localhost:8090/entities/Entity1', {
2727
method: 'GET',
2828
headers: {
2929
'Accept': 'application/json',

web-app/client/src/components/editConsumer/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const EditConsumer = (props) => {
2626

2727
const fetchEntityDataAction = () => {
2828
let token = localStorage.getItem("token");
29-
fetch("http://192.168.43.54:8090/auth/consumers/manufacturer", {
29+
fetch("http://localhost:8090/auth/consumers/manufacturer", {
3030
method: "GET",
3131
headers: {
3232
"x-access-token": token,
@@ -56,7 +56,7 @@ const EditConsumer = (props) => {
5656
const editEntity = () => {
5757
let token = localStorage.getItem('token');
5858
let entityType = localStorage.getItem('entity-type');
59-
let url = "http://192.168.43.54:8090/auth/users/" + entityType + "/" + currentId;
59+
let url = "http://localhost:8090/auth/users/" + entityType + "/" + currentId;
6060
fetch(url, {
6161
method: "PUT",
6262
headers: {

web-app/client/src/components/editEntity/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const EditEntity = (props) => {
2424

2525
const fetchEntityDataAction = () => {
2626
let token = localStorage.getItem("token");
27-
fetch("http://192.168.43.54:8090/entities", {
27+
fetch("http://localhost:8090/entities", {
2828
method: "GET",
2929
headers: {
3030
"x-access-token": token,
@@ -53,7 +53,7 @@ const EditEntity = (props) => {
5353

5454
const editEntity = () => {
5555
let token = localStorage.getItem('token');
56-
let url = "http://192.168.43.54:8090/entities/" + currentId;
56+
let url = "http://localhost:8090/entities/" + currentId;
5757
fetch(url, {
5858
method: "PUT",
5959
headers: {

web-app/client/src/components/editEntityUser/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const EditEntityUser = (props) => {
2626

2727
const fetchEntityDataAction = () => {
2828
let token = localStorage.getItem("token");
29-
fetch("http://192.168.43.54:8090/auth/users/manufacturer", {
29+
fetch("http://localhost:8090/auth/users/manufacturer", {
3030
method: "GET",
3131
headers: {
3232
"x-access-token": token,
@@ -54,7 +54,7 @@ const EditEntityUser = (props) => {
5454

5555
const fetchUserEntityDataAction = () => {
5656
let token = localStorage.getItem("token");
57-
fetch("http://192.168.43.54:8090/entities/" + currentIdData.EntityID, {
57+
fetch("http://localhost:8090/entities/" + currentIdData.EntityID, {
5858
method: "GET",
5959
headers: {
6060
"x-access-token": token,
@@ -80,7 +80,7 @@ const EditEntityUser = (props) => {
8080
|| entityType === 'retailer'
8181
|| entityType === 'distributor'
8282
? 'middlemen' : 'manufacturer';
83-
let url = "http://192.168.43.54:8090/auth/users/" + toPost + "/" + currentId;
83+
let url = "http://localhost:8090/auth/users/" + toPost + "/" + currentId;
8484
fetch(url, {
8585
method: "PUT",
8686
headers: {

web-app/client/src/components/grantTokenToConsumer/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const GrantTokenToConsumer = (props) => {
2525

2626
const fetchEntityDataAction = () => {
2727
let token = localStorage.getItem("token");
28-
fetch("http://192.168.43.54:8090/auth/consumers/middlemen", {
28+
fetch("http://localhost:8090/auth/consumers/middlemen", {
2929
method: "GET",
3030
headers: {
3131
"x-access-token": token,
@@ -65,7 +65,7 @@ const GrantTokenToConsumer = (props) => {
6565

6666
const grantTokenToConsumer = () => {
6767
let token = localStorage.getItem('token');
68-
let url = "http://192.168.43.54:8090/token/grant-token/consumer/middlemen";
68+
let url = "http://localhost:8090/token/grant-token/consumer/middlemen";
6969
fetch(url, {
7070
method: "POST",
7171
headers: {

web-app/client/src/components/grantTokenToEntity/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const GrantTokenToEntity = (props) => {
2626
const fetchEntityDataAction = () => {
2727
let token = localStorage.getItem("token");
2828
let entityType = localStorage.getItem("entity-type");
29-
fetch("http://192.168.43.54:8090/user/" + entityType + "/entities", {
29+
fetch("http://localhost:8090/user/" + entityType + "/entities", {
3030
method: "GET",
3131
headers: {
3232
"x-access-token": token,
@@ -91,7 +91,7 @@ const GrantTokenToEntity = (props) => {
9191
let token = localStorage.getItem('token');
9292
let entityType = localStorage.getItem("entity-type");
9393

94-
let url = "http://192.168.43.54:8090/token/grant-token/entity/" + entityType;
94+
let url = "http://localhost:8090/token/grant-token/entity/" + entityType;
9595
fetch(url, {
9696
method: "POST",
9797
headers: {

0 commit comments

Comments
 (0)