feat(backend): SingleTheme-pagina geïmplementeerd

This commit is contained in:
Gerald Schmittinger 2025-04-01 01:31:11 +02:00
parent a33ec6c452
commit 34f980d690
7 changed files with 137 additions and 49 deletions

View file

@ -21,4 +21,8 @@ export class LearningPathController extends BaseController {
});
return LearningPath.fromDTO(single(dtos));
}
async getAllByTheme(theme: string) {
let dtos = await this.get<LearningPathDTO[]>("/", {theme});
return dtos.map(dto => LearningPath.fromDTO(dto));
}
}