Skip to content

Instantly share code, notes, and snippets.

@simonrenoult
Created May 16, 2018 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonrenoult/e7a1c0d3cfd5f804332da8ea0f3be600 to your computer and use it in GitHub Desktop.
Save simonrenoult/e7a1c0d3cfd5f804332da8ea0f3be600 to your computer and use it in GitHub Desktop.
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