feat(frontend): Verbeteringen i18n en standaardleerpad bij het aanmaken
This commit is contained in:
parent
60d11e5b0d
commit
bf1a90313d
7 changed files with 28 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue