start code for addStory

main
anela 3 years ago
parent 3832eef4b8
commit 0ff9b8b1ea

@ -73,7 +73,7 @@ class StoryList {
* Returns the new Story instance
*/
async addStory(/*user, newStory*/) {
async addStory(user, newStory) {
// UNIMPLEMENTED: complete this function!
/*
user = ("theCat");
@ -85,7 +85,11 @@ class StoryList {
let newStory = await storyList.addStory(currentUser,
{title: "Test", author: "Me", url: "http://meow.com"});
*/
const response = await axios({
url: `${BASE_URL}/stories`,
method: "POST",
params: {"token": user.loginToken, "story": }
})
}
}

Loading…
Cancel
Save