From 145c8a5b1dae6cd9d88ecccc6031d67894416b28 Mon Sep 17 00:00:00 2001
From: haraldnilsen <harald_998@hotmail.com>
Date: Sat, 13 Jan 2024 13:12:11 +0100
Subject: [PATCH] :alien: updated backend endpoint

Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
---
 frontend/src/api/getUserQuestions.ts   | 2 +-
 frontend/src/api/postBugData.ts        | 2 +-
 frontend/src/api/postEvaluationData.ts | 2 +-
 frontend/src/api/postFormData.ts       | 2 +-
 frontend/src/api/postUserformData.ts   | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

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<QAData> => {
-	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<postUserformDataReponse> => {
-	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;