feat(backend): SingleTheme-pagina geïmplementeerd
This commit is contained in:
parent
a33ec6c452
commit
34f980d690
7 changed files with 137 additions and 49 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue