Skip to content

Comments

Roland's latest version of DeliverEat#18

Open
rolandjlevy wants to merge 27 commits intoconstructorlabs:masterfrom
rolandjlevy:master
Open

Roland's latest version of DeliverEat#18
rolandjlevy wants to merge 27 commits intoconstructorlabs:masterfrom
rolandjlevy:master

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