Skip to content

Commit 106e301

Browse files
update all http to https
1 parent 36c2d14 commit 106e301

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

client/src/components/ProductionCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function ProductionCard({ genre, type, num}) {
2727
setLoading(true);
2828
setTop20([]);
2929
typeRef.current = type;
30-
fetch(`http://${config.server_host}:${config.server_port}/top20ForGenre/${genre}/${type}`)
30+
fetch(`https://${config.server_host}:${config.server_port}/top20ForGenre/${genre}/${type}`)
3131
.then(res => res.json())
3232
.then(resJson => {if(typeRef.current === type) setTop20(resJson)})
3333
.catch(error => setError(error))

client/src/components/ProductionCardYear.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function ProductionCardYear({ year, type, num}) {
2727
setLoading(true);
2828
setTop20([]);
2929
typeRef.current = type;
30-
fetch(`http://${config.server_host}:${config.server_port}/top20ForYear/${year}/${type}`)
30+
fetch(`https://${config.server_host}:${config.server_port}/top20ForYear/${year}/${type}`)
3131
.then(res => res.json())
3232
.then(resJson => {if(typeRef.current === type) setTop20(resJson)})
3333
.catch(error => setError(error))

client/src/pages/HomePage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function HomePage({ type }) {
4747
setTop250([]);
4848
//window.location.reload(false);
4949
typeRef.current = type;
50-
fetch(`http://${config.server_host}:${config.server_port}/topProduction/${type}`)
50+
fetch(`https://${config.server_host}:${config.server_port}/topProduction/${type}`)
5151
.then(res => res.json())
5252
.then(resJson => {if(typeRef.current === type) setTop250(resJson)})
5353
.catch(error => setError(error))

client/src/pages/PersonInfoPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function PersonInfoPage() {
1919
setLoading(true);
2020
setError(null);
2121
try {
22-
const personRes = await fetch(`http://${config.server_host}:${config.server_port}/personInfo/${personId}`);
22+
const personRes = await fetch(`https://${config.server_host}:${config.server_port}/personInfo/${personId}`);
2323
const personJson = await personRes.json();
2424
setPersonData(personJson);
2525

@@ -55,7 +55,7 @@ export default function PersonInfoPage() {
5555
</p>
5656
))} */}
5757
<SimpleTable
58-
route={`http://${config.server_host}:${config.server_port}/personInfo/${personId}`}
58+
route={`https://${config.server_host}:${config.server_port}/personInfo/${personId}`}
5959
columns={[
6060
{ field:'primaryTitle', headerName: 'Product Title' },
6161
{ field:'profession', headerName: 'Profession' },

client/src/pages/PersonSearchPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function PersonSearchPage() {
1616
const [profession, setProfession] = useState('All');
1717

1818
useEffect(() => {
19-
fetch(`http://${config.server_host}:${config.server_port}/search_people`)
19+
fetch(`https://${config.server_host}:${config.server_port}/search_people`)
2020
.then(res => res.json())
2121
.then(resJson => {
2222
const peopleWithId = resJson.map((person) => ({ id: person.personId, ...person }));
@@ -25,7 +25,7 @@ export default function PersonSearchPage() {
2525
}, []);
2626

2727
const search = () => {
28-
fetch(`http://${config.server_host}:${config.server_port}/search_people?primaryName=${primaryName}&birthYearLow=${birthYear[0]}` +
28+
fetch(`https://${config.server_host}:${config.server_port}/search_people?primaryName=${primaryName}&birthYearLow=${birthYear[0]}` +
2929
`&birthYearHigh=${birthYear[1]}&deathYearLow=${deathYear[0]}&deathYearHigh=${deathYear[1]}&profession=${profession}`
3030
)
3131
.then(res => res.json())

client/src/pages/ProductionInfoPage.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const ProductionInfoPage = ({ type }) => {
2222
setError(null);
2323

2424
try {
25-
const productionRes = await fetch(`http://${config.server_host}:${config.server_port}/productionInfo/${titleId}`);
25+
const productionRes = await fetch(`https://${config.server_host}:${config.server_port}/productionInfo/${titleId}`);
2626
const productionJson = await productionRes.json();
2727

2828
const year = productionJson.length > 0 ? productionJson[0].startYear : null;
@@ -36,7 +36,7 @@ const ProductionInfoPage = ({ type }) => {
3636
const personSetWithLink = new Set();
3737

3838
Promise.all(uniqueProductionData.map(p => new Promise(async (resolve) => {
39-
const personRes = await fetch(`http://${config.server_host}:${config.server_port}/personInfo/${p.personId}`)
39+
const personRes = await fetch(`https://${config.server_host}:${config.server_port}/personInfo/${p.personId}`)
4040
.then(res => res.json());
4141
if(Array.isArray(personRes) && personRes.length !== 0){
4242
personSetWithLink.add(p.personId);
@@ -59,7 +59,7 @@ const ProductionInfoPage = ({ type }) => {
5959
useEffect(() => {
6060
const fetchSimilarProducts = async () => {
6161
try {
62-
const similarRes = await fetch(`http://${config.server_host}:${config.server_port}/similarProductions/${titleId}/${type}/${thisYear}`);
62+
const similarRes = await fetch(`https://${config.server_host}:${config.server_port}/similarProductions/${titleId}/${type}/${thisYear}`);
6363
const similarJson = await similarRes.json();
6464
setSimilarProducts(similarJson);
6565
} catch (error) {
@@ -106,7 +106,7 @@ const ProductionInfoPage = ({ type }) => {
106106
<h2>Similar Product Recommendation:</h2>
107107
{similarProducts.length > 0 ? (
108108
<SimpleTable
109-
route={`http://${config.server_host}:${config.server_port}/similarProductions/${titleId}/${type}/${thisYear}`}
109+
route={`https://${config.server_host}:${config.server_port}/similarProductions/${titleId}/${type}/${thisYear}`}
110110
columns={tableColumns}
111111
filter={(simProd) => simProd.titleId !== titleId && simProd.primaryTitle !== productionData[0].primaryTitle}
112112
/>

client/src/pages/ProductionSearchPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function ProductionSearchPage({ type }) {
1919
const [averageRating, setAverageRating] = useState([0, 10]);
2020

2121
useEffect(() => {
22-
fetch(`http://${config.server_host}:${config.server_port}/search_productions/${type}`)
22+
fetch(`https://${config.server_host}:${config.server_port}/search_productions/${type}`)
2323
.then(res => res.json())
2424
.then(resJson => {
2525
const productionsWithId = resJson.map((production) => ({ id: production.titleId, ...production }));
@@ -28,7 +28,7 @@ export default function ProductionSearchPage({ type }) {
2828
}, [type]);
2929

3030
const search = () => {
31-
fetch(`http://${config.server_host}:${config.server_port}/search_productions/${type}?primaryTitle=${primaryTitle}` +
31+
fetch(`https://${config.server_host}:${config.server_port}/search_productions/${type}?primaryTitle=${primaryTitle}` +
3232
`&isAdult=${isAdult}&startYearLow=${startYear[0]}&startYearHigh=${startYear[1]}&runtimeMinutesLow=${runtimeMinutes[0]}` +
3333
`&runtimeMinutesHigh=${runtimeMinutes[1]}&genre=${genre}&averageRatingLow=${averageRating[0]}` +
3434
`&averageRatingHigh=${averageRating[1]}`

0 commit comments

Comments
 (0)