👽 updated endpoints

Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
haraldnilsen 2024-01-13 18:09:24 +01:00
parent f347676898
commit 3d6e4d432a
5 changed files with 5 additions and 5 deletions

View file

@ -22,7 +22,7 @@ interface QAData {
export const getUserQuestions = async (
respondentID: number
): Promise<QAData> => {
let url = `https://helseundersokelsen.no/userquestions?respondentID=${respondentID}`;
let url = `https://helseundersokelsen.online/userquestions?respondentID=${respondentID}`;
const response = fetch(url, {
method: "GET",

View file

@ -1,5 +1,5 @@
export const postBugData = async (bugText: string) => {
let url = "https://helseundersokelsen.no/submitbug";
let url = "https://helseundersokelsen.online/submitbug";
const response = fetch(url, {
method: "POST",

View file

@ -1,5 +1,5 @@
export const postEvaluationData = async (evaluationText: string) => {
let url = "https://helseundersokelsen.no/submiteval";
let url = "https://helseundersokelsen.online/submiteval";
const response = fetch(url, {
method: "POST",

View file

@ -2,7 +2,7 @@ export const postFormData = async (
respondentID: number,
allFormAnswers: string
) => {
let url = "https://helseundersokelsen.no/submitanswers";
let url = "https://helseundersokelsen.online/submitanswers";
const response = fetch(url, {
method: "POST",

View file

@ -11,7 +11,7 @@ export const postUserformData = async (
county: string,
submit_date: string
): Promise<postUserformDataReponse> => {
let url = "https://helseundersokelsen.no/submituserform";
let url = "https://helseundersokelsen.online/submituserform";
let personnel = healthcare_personnel == "Ja" ? true : false;
let answered_before = has_answered_before == "Ja" ? true : false;