Skip to content

Instantly share code, notes, and snippets.

@mbrown3321
Created November 8, 2020 03:42
app.delete("/api/v1/issues/:id", (req, res) => {
const { id } = req.params;
pool.query("DELETE FROM issues WHERE id = $1", [id], (error, results) => {
if (error) {
throw error;
}
res.sendStatus(200);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment