From 8ce67255afa384bb655d5373bfa926a97f420d58 Mon Sep 17 00:00:00 2001 From: rishit-singh Date: Wed, 3 Jan 2024 14:31:59 -0800 Subject: [PATCH] Changed http to https in fetch URLs --- frontend/.env | 2 -- frontend/src/app/about/AboutPage.tsx | 3 --- frontend/src/app/thunks/EventThunks.ts | 2 +- frontend/src/app/thunks/ProfileThunks.ts | 2 +- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/.env b/frontend/.env index a6f9ff3..e69de29 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1,2 +0,0 @@ -APIURL=https://api.langaracs.tech/ -# APIKEY= you must provide the api key \ No newline at end of file diff --git a/frontend/src/app/about/AboutPage.tsx b/frontend/src/app/about/AboutPage.tsx index 98124e1..5875c2b 100644 --- a/frontend/src/app/about/AboutPage.tsx +++ b/frontend/src/app/about/AboutPage.tsx @@ -12,9 +12,6 @@ import Conditional from "../Conditional"; interface AboutPageProps {} -interface AboutPageState -{} - export default function AboutPage({} : AboutPageProps) { const execProfiles = useAppSelector(selectProfile); diff --git a/frontend/src/app/thunks/EventThunks.ts b/frontend/src/app/thunks/EventThunks.ts index 213c037..0655bff 100644 --- a/frontend/src/app/thunks/EventThunks.ts +++ b/frontend/src/app/thunks/EventThunks.ts @@ -2,7 +2,7 @@ import { CalendarEvent } from "../slices/eventSlice"; import { AppDispatch, RootState } from "../stores/store"; export const fetchEventsAsync = () => async (state: RootState, dispatch: AppDispatch): Promise => { - const response = await (await (fetch(`http://${process.env.APIURL}/Event/ListAll`, + const response = await (await (fetch(`https://${process.env.APIURL}/Event/ListAll`, { method: "GET", headers: { diff --git a/frontend/src/app/thunks/ProfileThunks.ts b/frontend/src/app/thunks/ProfileThunks.ts index a9a2496..879f75b 100644 --- a/frontend/src/app/thunks/ProfileThunks.ts +++ b/frontend/src/app/thunks/ProfileThunks.ts @@ -3,7 +3,7 @@ import { AppDispatch, RootState } from "../stores/store"; import { ExecProfileObject } from "../slices/execProfileSlice"; export const loadProfilesAsync = () => async (state: RootState, dispatch: AppDispatch): Promise => { - const response = (await (await fetch(`http://${process.env.APIURL}/Exec/Profile/Active?image=true&complete=true`, { + const response = (await (await fetch(`https://${process.env.APIURL}/Exec/Profile/Active?image=true&complete=true`, { method: "GET", headers: { "apikey": `${process.env.APIKEY}`