👽 updated backend endpoint
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
		
							parent
							
								
									2a5a366673
								
							
						
					
					
						commit
						145c8a5b1d
					
				
					 5 changed files with 5 additions and 5 deletions
				
			
		|  | @ -22,7 +22,7 @@ interface QAData { | ||||||
| export const getUserQuestions = async ( | export const getUserQuestions = async ( | ||||||
| 	respondentID: number | 	respondentID: number | ||||||
| ): Promise<QAData> => { | ): Promise<QAData> => { | ||||||
| 	let url = `http://localhost:8080/userquestions?respondentID=${respondentID}`; | 	let url = `https://helseundersokelsen.no/userquestions?respondentID=${respondentID}`; | ||||||
| 
 | 
 | ||||||
| 	const response = fetch(url, { | 	const response = fetch(url, { | ||||||
| 		method: "GET", | 		method: "GET", | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| export const postBugData = async (bugText: string) => { | export const postBugData = async (bugText: string) => { | ||||||
| 	let url = "http://localhost:8080/submitbug"; | 	let url = "https://helseundersokelsen.no/submitbug"; | ||||||
| 
 | 
 | ||||||
| 	const response = fetch(url, { | 	const response = fetch(url, { | ||||||
| 		method: "POST", | 		method: "POST", | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| export const postEvaluationData = async (evaluationText: string) => { | export const postEvaluationData = async (evaluationText: string) => { | ||||||
| 	let url = "http://localhost:8080/submiteval"; | 	let url = "https://helseundersokelsen.no/submiteval"; | ||||||
| 
 | 
 | ||||||
| 	const response = fetch(url, { | 	const response = fetch(url, { | ||||||
| 		method: "POST", | 		method: "POST", | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ export const postFormData = async ( | ||||||
| 	respondentID: number, | 	respondentID: number, | ||||||
| 	allFormAnswers: string | 	allFormAnswers: string | ||||||
| ) => { | ) => { | ||||||
| 	let url = "http://localhost:8080/submitanswers"; | 	let url = "https://helseundersokelsen.no/submitanswers"; | ||||||
| 
 | 
 | ||||||
| 	const response = fetch(url, { | 	const response = fetch(url, { | ||||||
| 		method: "POST", | 		method: "POST", | ||||||
|  |  | ||||||
|  | @ -11,7 +11,7 @@ export const postUserformData = async ( | ||||||
| 	county: string, | 	county: string, | ||||||
| 	submit_date: string | 	submit_date: string | ||||||
| ): Promise<postUserformDataReponse> => { | ): Promise<postUserformDataReponse> => { | ||||||
| 	let url = "http://localhost:8080/submituserform"; | 	let url = "https://helseundersokelsen.no/submituserform"; | ||||||
| 	let personnel = healthcare_personnel == "Ja" ? true : false; | 	let personnel = healthcare_personnel == "Ja" ? true : false; | ||||||
| 	let answered_before = has_answered_before == "Ja" ? true : false; | 	let answered_before = has_answered_before == "Ja" ? true : false; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 haraldnilsen
						haraldnilsen