From 15d4b9decb97b451a175cc72339080c0fd96ef4e Mon Sep 17 00:00:00 2001 From: alimomennasab Date: Tue, 16 Jan 2024 11:15:53 -0800 Subject: [PATCH] Updated endpoints --- src/components/ProfessorPopup.tsx | 4 ++-- src/components/SearchBar.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ProfessorPopup.tsx b/src/components/ProfessorPopup.tsx index 01a5d5f..aaaef77 100644 --- a/src/components/ProfessorPopup.tsx +++ b/src/components/ProfessorPopup.tsx @@ -93,7 +93,7 @@ export const fetchInstructorAndCourseGPA = async ( console.log('courseSubject: ' + courseSubject); const profResponse = await fetch( - 'https://cpp-scheduler.herokuapp.com/data/instructors/find', + 'https://api.cppscheduler.com/data/professors/find', { method: 'POST', headers: { @@ -107,7 +107,7 @@ export const fetchInstructorAndCourseGPA = async ( ); const courseResponse = await fetch( - 'https://cpp-scheduler.herokuapp.com/data/instructions/find', + 'https://api.cppscheduler.com/data/instructions/find', { method: 'POST', headers: { diff --git a/src/components/SearchBar.tsx b/src/components/SearchBar.tsx index dfc4ab4..be80b02 100644 --- a/src/components/SearchBar.tsx +++ b/src/components/SearchBar.tsx @@ -126,7 +126,7 @@ export const fetchInstructorGPA = async ( try { const response = await fetch( - 'https://cpp-scheduler.herokuapp.com/data/instructors/find', + 'https://api.cppscheduler.com/data/professors/find', { method: 'POST', headers: {