|
|
@ -96,18 +96,19 @@ class StoryList {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
console.log("the response is : ", response);
|
|
|
|
console.log("the response is : ", response);
|
|
|
|
|
|
|
|
|
|
|
|
this.storyId = storyId;
|
|
|
|
// this.storyId = storyId;
|
|
|
|
this.title = title;
|
|
|
|
// this.title = title;
|
|
|
|
this.author = author;
|
|
|
|
// this.author = author;
|
|
|
|
this.url = url;
|
|
|
|
// this.url = url;
|
|
|
|
this.username = username;
|
|
|
|
// this.username = username;
|
|
|
|
this.createdAt = createdAt;
|
|
|
|
// this.createdAt = createdAt;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// let returnObj = {
|
|
|
|
|
|
|
|
// ${response.data.}
|
|
|
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
|
|
let returnObj = {
|
|
|
|
return new Story(response.data.story);
|
|
|
|
${response.data.}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return response;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|