feat(frontend): Heel ruwe eerste versie van leerpadbeheerpagina toegevoegd
This commit is contained in:
parent
1a768fedcc
commit
2db5d77296
15 changed files with 732 additions and 5820 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue