feat(frontend): alle leerpaden en klasses worden gefetched via de controllers

This commit is contained in:
Joyelle Ndagijimana 2025-04-08 01:29:42 +02:00
parent 23947ecd92
commit 1328771551
7 changed files with 113 additions and 83 deletions

View file

@ -1,4 +1,3 @@
/**
* Submits the form data to the backend.
*
@ -16,21 +15,21 @@ import type {AssignmentDTO} from "@dwengo-1/common/interfaces/assignment";
export const submitForm = async (
assignmentTitle: string,
selectedLearningPath: any,
selectedLearningPath: string,
selectedClass: string,
groups: string[][],
groups: string[],
deadline: string,
description: string,
currentLanguage: string
) => {
const formData: AssignmentDTO = {
id: 0,
id: 4,
class: selectedClass,
title: assignmentTitle,
description: description,
learningPath: selectedLearningPath,
language: currentLanguage,
groups: [],
language: currentLanguage
//groups: [],
//deadline: deadline,
};