fix: DELETE en POST endpoints toegevoegd

This commit is contained in:
Adriaan Jacquet 2025-03-13 19:27:34 +01:00
parent 400a955850
commit 8c7d5e965c
6 changed files with 17 additions and 5 deletions

View file

@ -26,7 +26,7 @@ export async function createAssignmentHandler(req: Request<AssignmentParams>, re
if (!assignmentData.description || !assignmentData.language || !assignmentData.learningPath || !assignmentData.title) {
res.status(400).json({
error: 'Missing one or more required fields: title, description, learningPath, title',
error: 'Missing one or more required fields: title, description, learningPath, language',
});
return;
}