diff --git a/code/src/components/ThoughtList.js b/code/src/components/ThoughtList.js index b781242c0..08418eba6 100644 --- a/code/src/components/ThoughtList.js +++ b/code/src/components/ThoughtList.js @@ -20,7 +20,7 @@ export const ThoughtList = ({ thoughts, setThoughts }) => { }; const onLikedThought = (id) => { - fetch(`${THOUGHTS_URL}/${id}/like`, { + fetch(`${THOUGHTS_URL}/${id}/likes`, { method: 'POST', body: '', headers: { 'Content-Type': 'application/json' }