8. PUT endpoints
PUT /api/snippets/:id
PUT /api/snippets/:id// ...
// PUT /api/snippets/:id
router.put("/:id", async (request, response) => {
// TODO
});
// ...PUT /api/snippets/1
{
"title": "Updated snippet title",
"contents": "#hello world",
"is_private": true
}Exercise: Implement the PUT endpoint
Last updated