refactor(backend): Preparation for learning content from multiple data sources.
Refactored the service layer so that it becomes possible to add another source for learning objects and learning paths.
This commit is contained in:
parent
8c22b72b22
commit
d7728ddd03
10 changed files with 219 additions and 117 deletions
|
@ -20,7 +20,7 @@ export interface LearningObjectNode {
|
|||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface LearningPath {
|
||||
export interface LearningContent {
|
||||
_id: string;
|
||||
language: string;
|
||||
hruid: string;
|
||||
|
@ -93,6 +93,6 @@ export interface FilteredLearningObject {
|
|||
export interface LearningPathResponse {
|
||||
success: boolean;
|
||||
source: string;
|
||||
data: LearningPath[] | null;
|
||||
data: LearningContent[] | null;
|
||||
message?: string;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue