🚧 started on question-form
Co-authored-by: haraldnilsen <harald_998@hotmail.com> Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
8e4e7aa5fc
commit
7e00f24fbd
3 changed files with 17 additions and 5 deletions
|
@ -1,9 +1,13 @@
|
|||
export const postFormData = (
|
||||
interface postUserformDataReponse {
|
||||
respondentID: number;
|
||||
}
|
||||
|
||||
export const postUserformData = (
|
||||
age: string,
|
||||
education: string,
|
||||
healthcare_personnel: string,
|
||||
gender: string
|
||||
) => {
|
||||
): postUserformDataReponse => {
|
||||
let url = "http://localhost:8080/submitform";
|
||||
let personnel = healthcare_personnel == "Ja" ? true : false;
|
||||
|
Reference in a new issue