Skip to content

Commit

Permalink
Backend URL changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dashrath-chauhan committed May 28, 2024
1 parent 83196bd commit 79d57c2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/lib/components/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ const Home = props => {
let baseUrl = process.env.REACT_APP_TESTBED_API_BASE_URL
let basePort = process.env.REACT_APP_TESTBED_API_BASE_PORT

//useEffect(() => simpleApiCall(`${baseUrl}:${basePort}/specifications`, setSpecifications, setErrSpecifications), []);
//useEffect(() => simpleApiCall(`${baseUrl}:${basePort}/testbeds`, setTestbeds, setErrTestbeds), []);
//useEffect(() => simpleApiCall(`${baseUrl}:${basePort}/organizations`, setOrganizations, setErrOrganizations), []);
//useEffect(() => simpleApiCall(`${baseUrl}:${basePort}/platforms`, setPlatforms, setErrPlatforms), []);
useEffect(() => simpleApiCall(`${baseUrl}:${basePort}/reports`, setReports, setErrReports), []);
//useEffect(() => simpleApiCall(`${baseUrl}/specifications`, setSpecifications, setErrSpecifications), []);
//useEffect(() => simpleApiCall(`${baseUrl}/testbeds`, setTestbeds, setErrTestbeds), []);
//useEffect(() => simpleApiCall(`${baseUrl}/organizations`, setOrganizations, setErrOrganizations), []);
//useEffect(() => simpleApiCall(`${baseUrl}/platforms`, setPlatforms, setErrPlatforms), []);
useEffect(() => simpleApiCall(`${baseUrl}/reports`, setReports, setErrReports), []);

return (
<PageContainer>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/pages/Organization.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Organization = props => {
let baseUrl = process.env.REACT_APP_TESTBED_API_BASE_URL
let basePort = process.env.REACT_APP_TESTBED_API_BASE_PORT

useEffect(() => simpleApiCall(`${baseUrl}:${basePort}/organizations/${organizationId}`, setOrganization, setErrOrganization), []);
useEffect(() => simpleApiCall(`${baseUrl}/organizations/${organizationId}`, setOrganization, setErrOrganization), []);

return (
<PageContainer>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/pages/Platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Platform = props => {
let baseUrl = process.env.REACT_APP_TESTBED_API_BASE_URL
let basePort = process.env.REACT_APP_TESTBED_API_BASE_PORT

useEffect(() => simpleApiCall(`${baseUrl}:${basePort}/platforms/${platformId}`, setPlatform, setErrPlatform), []);
useEffect(() => simpleApiCall(`${baseUrl}/platforms/${platformId}`, setPlatform, setErrPlatform), []);

return (
<PageContainer>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/pages/ReportSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ReportSeries = props => {
let baseUrl = process.env.REACT_APP_TESTBED_API_BASE_URL
let basePort = process.env.REACT_APP_TESTBED_API_BASE_PORT

useEffect(() => simpleApiCall(`${baseUrl}:${basePort}/report-series/${reportSeriesId}`, setReportSeries, setErrReportSeries), []);
useEffect(() => simpleApiCall(`${baseUrl}/report-series/${reportSeriesId}`, setReportSeries, setErrReportSeries), []);

return (
<PageContainer>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/pages/Specification.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Specification = props => {
let baseUrl = process.env.REACT_APP_TESTBED_API_BASE_URL
let basePort = process.env.REACT_APP_TESTBED_API_BASE_PORT

useEffect(() => simpleApiCall(`${baseUrl}:${basePort}/specifications/${specificationId}`, setSpecification, setErrSpecification), []);
useEffect(() => simpleApiCall(`${baseUrl}/specifications/${specificationId}`, setSpecification, setErrSpecification), []);

return (
<PageContainer>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/pages/Testbed.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Testbed = props => {
let baseUrl = process.env.REACT_APP_TESTBED_API_BASE_URL
let basePort = process.env.REACT_APP_TESTBED_API_BASE_PORT

useEffect(() => simpleApiCall(`${baseUrl}:${basePort}/testbeds/${testbedId}`, setTestbed, setErrTestbed), []);
useEffect(() => simpleApiCall(`${baseUrl}/testbeds/${testbedId}`, setTestbed, setErrTestbed), []);

return (
<PageContainer>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/pages/report/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Report = props => {
let baseUrl = process.env.REACT_APP_TESTBED_API_BASE_URL
let basePort = process.env.REACT_APP_TESTBED_API_BASE_PORT

useEffect(() => simpleApiCall(`${baseUrl}:${basePort}/reports/${reportId}`, setReport, setErrReport), []);
useEffect(() => simpleApiCall(`${baseUrl}/reports/${reportId}`, setReport, setErrReport), []);

return (
<PageContainer>
Expand Down

0 comments on commit 79d57c2

Please sign in to comment.