diff --git a/website-html/assets/js/add-community.js b/website-html/assets/js/add-community.js index a5ef13c..0c23476 100644 --- a/website-html/assets/js/add-community.js +++ b/website-html/assets/js/add-community.js @@ -6,7 +6,7 @@ const getCommunityName = () => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getCommunityName', config) + return fetch('http://18.237.22.223:8000/getCommunityName', config) .then(response => response.json()) .catch(error => console.log(error)); } @@ -25,7 +25,7 @@ const setCommunity = (contacEmail, category, serverName, desc, link, type, socia socialMedia }) }; - fetch('http://localhost:8000/setCommunityRequest', config) + fetch('http://18.237.22.223:8000/setCommunityRequest', config) .catch(error => console.log(error)); } diff --git a/website-html/assets/js/adminDiscord.js b/website-html/assets/js/adminDiscord.js index 53c8c10..eb57647 100644 --- a/website-html/assets/js/adminDiscord.js +++ b/website-html/assets/js/adminDiscord.js @@ -3,7 +3,7 @@ const getCommRequestSnapshot=(path)=>{ method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getCommRequestSnapshot?path=' + path, config) + return fetch('http://18.237.22.223:8000/getCommRequestSnapshot?path=' + path, config) .then(response => response.json()) .catch(error => console.log(error)); } @@ -13,7 +13,7 @@ const getClassRequestSnapshot=(path)=>{ method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getClassRequestSnapshot?path=' + path, config) + return fetch('http://18.237.22.223:8000/getClassRequestSnapshot?path=' + path, config) .then(response => response.json()) .catch(error => console.log(error)); } @@ -26,7 +26,7 @@ const removeData =(reference,id)=>{ id }) }; - fetch('http://localhost:8000/removeData',config) + fetch('http://18.237.22.223:8000/removeData',config) .catch(error => console.log(error)); } @@ -249,7 +249,7 @@ function addDiscordInfotoDBFromAdminPage (className, inviteURL, profName, quarte year }) }; - fetch('http://localhost:8000/addClass',config) + fetch('http://18.237.22.223:8000/addClass',config) .catch(error => console.log(error)); } @@ -269,7 +269,7 @@ function addCommunitiesInfotoDBFromAdminPage(contact, name, inviteLink, org_type description }) }; - fetch('http://localhost:8000/addCommunity',config) + fetch('http://18.237.22.223:8000/addCommunity',config) .catch(error=>console.log(error)) } diff --git a/website-html/assets/js/adminFeedback.js b/website-html/assets/js/adminFeedback.js index 367bb11..9bf6c74 100644 --- a/website-html/assets/js/adminFeedback.js +++ b/website-html/assets/js/adminFeedback.js @@ -3,7 +3,7 @@ const getFeedbackSnapshot=(path)=>{ method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getFeedbackSnapshot?path=' + path, config) + return fetch('http://18.237.22.223:8000/getFeedbackSnapshot?path=' + path, config) .then(response => response.json()) .catch(error => console.log(error)); } @@ -25,7 +25,7 @@ const moveFeedback =(from,to,id,email,fullname,issue_type,explanation,time)=>{ time }) }; - fetch('http://localhost:8000/moveFeedback',config) + fetch('http://18.237.22.223:8000/moveFeedback',config) .catch(error => console.log(error)); } @@ -39,7 +39,7 @@ const removeData =(reference,id)=>{ id }) }; - fetch('http://localhost:8000/removeData',config) + fetch('http://18.237.22.223:8000/removeData',config) .catch(error => console.log(error)); } diff --git a/website-html/assets/js/adminReport.js b/website-html/assets/js/adminReport.js index 0521642..c06ad08 100644 --- a/website-html/assets/js/adminReport.js +++ b/website-html/assets/js/adminReport.js @@ -3,7 +3,7 @@ const getReportSnapshot=(path)=>{ method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getReportSnapshot?path=' + path, config) + return fetch('http://18.237.22.223:8000/getReportSnapshot?path=' + path, config) .then(response => response.json()) .catch(error => console.log(error)); } @@ -24,7 +24,7 @@ const moveReport =(from,to,id,time,communityOrClassName,discordLink,email,fullna reason }) }; - fetch('http://localhost:8000/moveReport',config) + fetch('http://18.237.22.223:8000/moveReport',config) .catch(error => console.log(error)); } @@ -38,7 +38,7 @@ const removeData =(reference,id)=>{ id }) }; - fetch('http://localhost:8000/removeData',config) + fetch('http://18.237.22.223:8000/removeData',config) .catch(error => console.log(error)); } diff --git a/website-html/assets/js/adminUser.js b/website-html/assets/js/adminUser.js index cbc4b58..111946d 100644 --- a/website-html/assets/js/adminUser.js +++ b/website-html/assets/js/adminUser.js @@ -12,7 +12,7 @@ const getAdminEmail = (mail) => { mail }) }; - fetch('http://localhost:8000/getAdminEmail', config) + fetch('http://18.237.22.223:8000/getAdminEmail', config) .catch(error => console.log(error)); } const getAdminSnapshot = ()=>{ @@ -20,7 +20,7 @@ const getAdminSnapshot = ()=>{ method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getAdminSnapshot', config) + return fetch('http://18.237.22.223:8000/getAdminSnapshot', config) .then(response => response.json()) .catch(error => console.log(error)); } @@ -34,7 +34,7 @@ const removeData =(reference,id)=>{ id }) }; - fetch('http://localhost:8000/removeData',config) + fetch('http://18.237.22.223:8000/removeData',config) .catch(error => console(error)); } diff --git a/website-html/assets/js/create-server.js b/website-html/assets/js/create-server.js index fa31a0e..94d8566 100644 --- a/website-html/assets/js/create-server.js +++ b/website-html/assets/js/create-server.js @@ -13,7 +13,7 @@ const setClassServerRequest = (user_email, class_name, invite_URL, prof_Name, qu year }) }; - fetch('http://localhost:8000/setClassServerRequest', config) + fetch('http://18.237.22.223:8000/setClassServerRequest', config) .catch(error => console.log(error)); } diff --git a/website-html/assets/js/feedbackDiscordUtil.js b/website-html/assets/js/feedbackDiscordUtil.js index 98a85e9..52480f6 100644 --- a/website-html/assets/js/feedbackDiscordUtil.js +++ b/website-html/assets/js/feedbackDiscordUtil.js @@ -22,7 +22,7 @@ const sendFeedbackVerifedHelper = (email, fullname, issue_type, explanation, time }) }; - fetch('http://localhost:8000/sendFeedbackVerifed', config) + fetch('http://18.237.22.223:8000/sendFeedbackVerifed', config) .catch(error => console.log(error)); } @@ -52,6 +52,6 @@ const sendFeedbackUnverifedHelper = (email, fullname, issue_type, explanation, time }) }; - fetch('http://localhost:8000/sendFeedbackUnverifed', config) + fetch('http://18.237.22.223:8000/sendFeedbackUnverifed', config) .catch(error => console.log(error)); } diff --git a/website-html/assets/js/profileCard.js b/website-html/assets/js/profileCard.js index 2f63ba5..39b399e 100644 --- a/website-html/assets/js/profileCard.js +++ b/website-html/assets/js/profileCard.js @@ -11,7 +11,7 @@ const getAdminUser = () => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getAdminUser', config) + return fetch('http://18.237.22.223:8000/getAdminUser', config) .then(response => response.json()) .catch(error => console.log(error)); } diff --git a/website-html/assets/js/report.js b/website-html/assets/js/report.js index 2c5b2a0..cbd4285 100644 --- a/website-html/assets/js/report.js +++ b/website-html/assets/js/report.js @@ -11,7 +11,7 @@ const setNewReport = (reportRef, community_or_class_name, discord_link, report_c report_reason }) }; - fetch('http://localhost:8000/setNewReport', config) + fetch('http://18.237.22.223:8000/setNewReport', config) .catch(error => console.log(error)); } diff --git a/website-html/assets/js/reviewClass.js b/website-html/assets/js/reviewClass.js index 08fef85..5e4a03d 100644 --- a/website-html/assets/js/reviewClass.js +++ b/website-html/assets/js/reviewClass.js @@ -14,7 +14,7 @@ const getClassSnap = () => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getClassSnapshot', config) + return fetch('http://18.237.22.223:8000/getClassSnapshot', config) .then(response => response.json()) .catch(error => console.log(error)); } @@ -112,7 +112,7 @@ const removeClass =(className,bid)=>{ bid }) }; - fetch('http://localhost:8000/removeClass',config) + fetch('http://18.237.22.223:8000/removeClass',config) .catch(error => console.log(error)); } @@ -151,7 +151,7 @@ const getClass = (className) => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getClass?className=' + className, config) + return fetch('http://18.237.22.223:8000/getClass?className=' + className, config) .then(response => response.json()) .catch(error => console.log(error)); } diff --git a/website-html/assets/js/searchClass.js b/website-html/assets/js/searchClass.js index 9354fad..7736d8c 100644 --- a/website-html/assets/js/searchClass.js +++ b/website-html/assets/js/searchClass.js @@ -14,7 +14,7 @@ const getClassSnap = () => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getClassSnapshot', config) + return fetch('http://18.237.22.223:8000/getClassSnapshot', config) .then(response => response.json()) .catch(error => console.log(error)); } @@ -65,7 +65,7 @@ const getClass = (className) => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getClass?className=' + className, config) + return fetch('http://18.237.22.223:8000/getClass?className=' + className, config) .then(response => response.json()) .catch(error => console.log(error)); } diff --git a/website-html/assets/js/searchCommunity.js b/website-html/assets/js/searchCommunity.js index 6907024..6e80f61 100644 --- a/website-html/assets/js/searchCommunity.js +++ b/website-html/assets/js/searchCommunity.js @@ -14,7 +14,7 @@ const getCommunitySnap = () => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getCommunitySnapshot', config) + return fetch('http://18.237.22.223:8000/getCommunitySnapshot', config) .then(response => response.json()) .catch(error => console.log(error)); } @@ -70,7 +70,7 @@ const getCommunity = (communityName) => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getCommunity?name=' + communityName, config) + return fetch('http://18.237.22.223:8000/getCommunity?name=' + communityName, config) .then(response => response.text()) .catch(error => console.log(error)); } @@ -160,7 +160,7 @@ const getCommunityByCat = (category) => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getCommunityByCat?category=' + category, config) + return fetch('http://18.237.22.223:8000/getCommunityByCat?category=' + category, config) .then(response => response.text()) .catch(error => console.log(error)); } diff --git a/website-html/assets/js/searchMajor.js b/website-html/assets/js/searchMajor.js index a9da29d..ead5994 100644 --- a/website-html/assets/js/searchMajor.js +++ b/website-html/assets/js/searchMajor.js @@ -11,7 +11,7 @@ const getMajorSnapshotHelper = () => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getMajorSnapshot', config) + return fetch('http://18.237.22.223:8000/getMajorSnapshot', config) .then(response => response.json()) .catch(error => console.log(error)); } diff --git a/website-html/assets/js/userprofile.js b/website-html/assets/js/userprofile.js index 93a8d48..a8acfdc 100644 --- a/website-html/assets/js/userprofile.js +++ b/website-html/assets/js/userprofile.js @@ -35,7 +35,7 @@ const getUserName = (uid) => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getUserName?uid=' + uid, config) + return fetch('http://18.237.22.223:8000/getUserName?uid=' + uid, config) .then(response => response.text()) .catch(error => console.log(error)); } @@ -45,7 +45,7 @@ const getUserMajor = (uid) => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getUserMajor?uid=' + uid, config) + return fetch('http://18.237.22.223:8000/getUserMajor?uid=' + uid, config) .then(response => response.text()) .catch(error => console.log(error)); } @@ -55,7 +55,7 @@ const getUserClasses = (uid) => { method: 'GET', headers: { 'Content-Type': 'application/json' } }; - return fetch('http://localhost:8000/getUserClasses?uid=' + uid, config) + return fetch('http://18.237.22.223:8000/getUserClasses?uid=' + uid, config) .then(response => response.text()) .catch(error => console.log(error)); } @@ -72,7 +72,7 @@ const saveUserProfile = (uid, courses, major, email, name) => { name }) }; - fetch('http://localhost:8000/saveUserProfile', config) + fetch('http://18.237.22.223:8000/saveUserProfile', config) .catch(error => console.log(error)); }