Skip to content

Conversation

khalidM3
Copy link

No description provided.



const Server = http.createServer(router.route());
Server.listen(PORT, () => console.log('SERVER RUNNING AT PORT ',8000));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as lab 8. Make sure you aren't manually setting ports that might override a port set by process.env.PORT

return Promise.reject(err);
}
})
.catch( err => Promise.reject(err));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are missing a delete method (i.e. exports.deleteItem).

response.sendText(res, 400, 'Bad request')
}
})
};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after building your exports.deleteItem method in your storage.js file you would need to create a route here that you could call to find and delete a file based on id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants