Skip to content

Conversation

@rolandjlevy
Copy link

No description provided.

server.js Outdated

app.post('/api/order', function(req, res){
addToOrders(req.body);
res.status(200).json({message: "successful"});
Copy link
Contributor

Choose a reason for hiding this comment

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

IT would be better to return order object with id here so the API user can have a reference to the object that was created for later use

@dmitrigrabov
Copy link
Contributor

Great work

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