diff --git a/js/models.js b/js/models.js index 1b550b0..b798926 100644 --- a/js/models.js +++ b/js/models.js @@ -94,7 +94,18 @@ class StoryList { { token: user.loginToken, story: newStory } ); - console.log("made it after the axios call"); + console.log("the response is : ", response); + + this.storyId = storyId; + this.title = title; + this.author = author; + this.url = url; + this.username = username; + this.createdAt = createdAt; + + let returnObj = { + ${response.data.} + }; return response; }