diff --git a/frontend/src/api/getUserQuestions.ts b/frontend/src/api/getUserQuestions.ts index ecfb3a5..5a5ed7c 100644 --- a/frontend/src/api/getUserQuestions.ts +++ b/frontend/src/api/getUserQuestions.ts @@ -22,7 +22,7 @@ interface QAData { export const getUserQuestions = async ( respondentID: number ): Promise => { - let url = `http://localhost:8080/userquestions?respondentID=${respondentID}`; + let url = `https://helseundersokelsen.no/userquestions?respondentID=${respondentID}`; const response = fetch(url, { method: "GET", diff --git a/frontend/src/api/postBugData.ts b/frontend/src/api/postBugData.ts index 5d7ceeb..6a35baf 100644 --- a/frontend/src/api/postBugData.ts +++ b/frontend/src/api/postBugData.ts @@ -1,5 +1,5 @@ export const postBugData = async (bugText: string) => { - let url = "http://localhost:8080/submitbug"; + let url = "https://helseundersokelsen.no/submitbug"; const response = fetch(url, { method: "POST", diff --git a/frontend/src/api/postEvaluationData.ts b/frontend/src/api/postEvaluationData.ts index bd7c84d..3fd254f 100644 --- a/frontend/src/api/postEvaluationData.ts +++ b/frontend/src/api/postEvaluationData.ts @@ -1,5 +1,5 @@ export const postEvaluationData = async (evaluationText: string) => { - let url = "http://localhost:8080/submiteval"; + let url = "https://helseundersokelsen.no/submiteval"; const response = fetch(url, { method: "POST", diff --git a/frontend/src/api/postFormData.ts b/frontend/src/api/postFormData.ts index 7006a1c..32be601 100644 --- a/frontend/src/api/postFormData.ts +++ b/frontend/src/api/postFormData.ts @@ -2,7 +2,7 @@ export const postFormData = async ( respondentID: number, allFormAnswers: string ) => { - let url = "http://localhost:8080/submitanswers"; + let url = "https://helseundersokelsen.no/submitanswers"; const response = fetch(url, { method: "POST", diff --git a/frontend/src/api/postUserformData.ts b/frontend/src/api/postUserformData.ts index 772acf1..e1e3c02 100644 --- a/frontend/src/api/postUserformData.ts +++ b/frontend/src/api/postUserformData.ts @@ -11,7 +11,7 @@ export const postUserformData = async ( county: string, submit_date: string ): Promise => { - let url = "http://localhost:8080/submituserform"; + let url = "https://helseundersokelsen.no/submituserform"; let personnel = healthcare_personnel == "Ja" ? true : false; let answered_before = has_answered_before == "Ja" ? true : false;