Add React frontend and Sinbad2IA LLM integration.

Introduce a full Vite/React UI for exams, auth, materials, images, generation, and export.
Adapt backend for Sinbad2IA chat API, bcrypt passwords, CORS on port 5173, and schema migrations.
This commit is contained in:
Mireya Cueto Garrido
2026-06-01 13:27:41 +02:00
parent 7bc27da33a
commit 946f16a633
66 changed files with 6769 additions and 48 deletions
+8
View File
@@ -0,0 +1,8 @@
import { api } from "./client";
export async function attachImageToQuestion(questionId, imageId) {
const { data } = await api.patch(`/exam/questions/${questionId}/image`, {
image_id: imageId,
});
return data; // QuestionRead
}