Skip to content

Commit e92a723

Browse files
committed
add structure
1 parent dc4e03b commit e92a723

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/uploadquestion.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const UploadFile: React.FC<UploadFileProps> = ({ setQuestions }) => {
3535
"category": jsonQuestions[i]["categories"],
3636
"difficulty": jsonQuestions[i]["categories"]
3737
}
38-
const response = await axios.post('http://localhost:3000/questions', questionData);
39-
console.log('Question created successfully:', response.data);
38+
// const response = await axios.post('http://localhost:3000/questions', questionData);
39+
// console.log('Question created successfully:', response.data);
4040
} catch (error) {
4141
console.error('Error creating question:', error);
4242
}

0 commit comments

Comments
 (0)