feat(frontend): Heel ruwe eerste versie van leerpadbeheerpagina toegevoegd

This commit is contained in:
Gerald Schmittinger 2025-05-13 01:03:55 +02:00
parent 1a768fedcc
commit 2db5d77296
15 changed files with 732 additions and 5820 deletions

View file

@ -37,9 +37,8 @@ export class LearningPathController extends BaseController {
return dtos.map((dto) => LearningPath.fromDTO(dto));
}
async getAllByAdmin(admin: string): Promise<LearningPath[]> {
const dtos = await this.get<LearningPathDTO[]>("/", { admin });
return dtos.map((dto) => LearningPath.fromDTO(dto));
async getAllByAdminRaw(admin: string): Promise<LearningPathDTO[]> {
return await this.get<LearningPathDTO[]>("/", { admin });
}
async postLearningPath(learningPath: LearningPathDTO): Promise<LearningPathDTO> {