Skip to content

Commit

Permalink
Fixed url to likes endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
evelinabe committed Jan 18, 2021
1 parent 3df28ee commit e6db665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/src/components/ThoughtList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down

0 comments on commit e6db665

Please sign in to comment.