Skip to content

Commit

Permalink
Changed http to https in fetch URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
rishit-singh committed Jan 3, 2024
1 parent e8671ac commit 8ce6725
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions frontend/.env
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
APIURL=https://api.langaracs.tech/
# APIKEY= you must provide the api key
3 changes: 0 additions & 3 deletions frontend/src/app/about/AboutPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ import Conditional from "../Conditional";
interface AboutPageProps
{}

interface AboutPageState
{}

export default function AboutPage({} : AboutPageProps)
{
const execProfiles = useAppSelector(selectProfile);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/thunks/EventThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CalendarEvent } from "../slices/eventSlice";
import { AppDispatch, RootState } from "../stores/store";

export const fetchEventsAsync = () => async (state: RootState, dispatch: AppDispatch): Promise<CalendarEvent[]> => {
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: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/thunks/ProfileThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AppDispatch, RootState } from "../stores/store";
import { ExecProfileObject } from "../slices/execProfileSlice";

export const loadProfilesAsync = () => async (state: RootState, dispatch: AppDispatch): Promise<ExecProfileObject[]> => {
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}`
Expand Down

0 comments on commit 8ce6725

Please sign in to comment.