Created
May 16, 2018 07:56
-
-
Save simonrenoult/e7a1c0d3cfd5f804332da8ea0f3be600 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.post("/products", async (req, res) => { | |
if (Object.keys(req.body).length === 0) { | |
return res.status(400).send(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment