feat(frontend): Verbeteringen i18n en standaardleerpad bij het aanmaken

This commit is contained in:
Gerald Schmittinger 2025-05-16 12:48:40 +02:00
parent 60d11e5b0d
commit bf1a90313d
7 changed files with 28 additions and 13 deletions

View file

@ -44,11 +44,11 @@ export class LearningPathController extends BaseController {
return await this.get<LearningPathDTO[]>("/", { admin });
}
async postLearningPath(learningPath: LearningPathDTO): Promise<LearningPathDTO> {
async postLearningPath(learningPath: Partial<LearningPathDTO>): Promise<LearningPathDTO> {
return await this.post<LearningPathDTO>("/", learningPath);
}
async putLearningPath(learningPath: LearningPathDTO): Promise<LearningPathDTO> {
async putLearningPath(learningPath: Partial<LearningPathDTO>): Promise<LearningPathDTO> {
return await this.put<LearningPathDTO>(`/${learningPath.hruid}/${learningPath.language}`, learningPath);
}