946f16a633
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.
9 lines
238 B
JavaScript
9 lines
238 B
JavaScript
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
|
|
}
|